summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/web/StorageClientImpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/web/StorageClientImpl.h')
-rw-r--r--chromium/third_party/WebKit/Source/web/StorageClientImpl.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/chromium/third_party/WebKit/Source/web/StorageClientImpl.h b/chromium/third_party/WebKit/Source/web/StorageClientImpl.h
new file mode 100644
index 00000000000..bc783af4028
--- /dev/null
+++ b/chromium/third_party/WebKit/Source/web/StorageClientImpl.h
@@ -0,0 +1,27 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef StorageClientImpl_h
+#define StorageClientImpl_h
+
+#include "core/page/StorageClient.h"
+
+namespace blink {
+
+class WebViewImpl;
+
+class StorageClientImpl : public WebCore::StorageClient {
+public:
+ explicit StorageClientImpl(WebViewImpl*);
+
+ virtual PassOwnPtr<WebCore::StorageNamespace> createSessionStorageNamespace() OVERRIDE;
+ virtual bool canAccessStorage(WebCore::LocalFrame*, WebCore::StorageType) const OVERRIDE;
+
+private:
+ WebViewImpl* m_webView;
+};
+
+} // namespace blink
+
+#endif // StorageClientImpl_h