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

Unified Diff: content/common/web_quota_dispatcher_callback.h

Issue 7438001: Cleanup: Make quota dispatcher code independent from WebKit types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 5 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
« no previous file with comments | « content/common/quota_messages.h ('k') | content/common/web_quota_dispatcher_callback.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/web_quota_dispatcher_callback.h
diff --git a/content/common/web_quota_dispatcher_callback.h b/content/common/web_quota_dispatcher_callback.h
new file mode 100644
index 0000000000000000000000000000000000000000..99c70d2401ee55522e4ae9a8fbf3c723f5c9efdd
--- /dev/null
+++ b/content/common/web_quota_dispatcher_callback.h
@@ -0,0 +1,29 @@
+// Copyright (c) 2011 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 CONTENT_COMMON_WEB_QUOTA_DISPATCHER_CALLBACK_H_
+#define CONTENT_COMMON_WEB_QUOTA_DISPATCHER_CALLBACK_H_
+
+#include "content/common/quota_dispatcher.h"
+
+namespace WebKit {
+class WebStorageQuotaCallbacks;
+}
+
+// QuotaDispatcherCallback implementation for WebStorageQuotaCallbacks.
+class WebQuotaDispatcherCallback : public QuotaDispatcher::Callback {
michaeln 2011/07/19 20:27:36 This class name confused me a bit. I've come to ex
+ public:
+ WebQuotaDispatcherCallback(WebKit::WebStorageQuotaCallbacks* callbacks);
+ virtual ~WebQuotaDispatcherCallback();
+
+ virtual void DidQueryStorageUsageAndQuota(int64 usage, int64 quota) OVERRIDE;
+ virtual void DidGrantStorageQuota(int64 granted_quota) OVERRIDE;
+ virtual void DidFail(quota::QuotaStatusCode error) OVERRIDE;
+
+ private:
+ // Not owned (self-destructed).
+ WebKit::WebStorageQuotaCallbacks* callbacks_;
+};
+
+#endif // CONTENT_COMMON_WEB_QUOTA_DISPATCHER_CALLBACK_H_
« no previous file with comments | « content/common/quota_messages.h ('k') | content/common/web_quota_dispatcher_callback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698