Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: public/platform/modules/quota/WebDurableStorageDispatcher.h

Issue 1154573005: Expose Durable Storage API to script (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rename WebSomeCallbacks and SomeCallbacks Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: public/platform/modules/quota/WebDurableStorageDispatcher.h
diff --git a/public/platform/modules/quota/WebDurableStorageDispatcher.h b/public/platform/modules/quota/WebDurableStorageDispatcher.h
new file mode 100644
index 0000000000000000000000000000000000000000..f64a9c58e41ac0f46562338a5a5c36d9e0a7c389
--- /dev/null
+++ b/public/platform/modules/quota/WebDurableStorageDispatcher.h
@@ -0,0 +1,30 @@
+// Copyright 2015 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 WebDurableStorageDispatcher_h
+#define WebDurableStorageDispatcher_h
+
+namespace blink {
+
+class WebURL;
+
+enum WebDurableStoragePermission { Default, Denied, Granted };
+
+class WebDurableStoragePermissionCallbacks {
+public:
+ virtual void didGetPermission(WebDurableStoragePermission) = 0;
+ virtual ~WebDurableStoragePermissionCallbacks() { }
+};
+
+class WebDurableStorageDispatcher {
+public:
+ virtual void requestPermission(const WebURL& url, WebDurableStoragePermissionCallbacks* callbacks) { }
+
+// protected:
+ virtual ~WebDurableStorageDispatcher() { }
+};
+
+} // namespace blink
+
+#endif // WebDurableStorageDispatcher_h

Powered by Google App Engine
This is Rietveld 408576698