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

Unified Diff: content/browser/renderer_host/quota_dispatcher_host.h

Issue 6811022: Add IPC plumbing code for Quota API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 8 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: content/browser/renderer_host/quota_dispatcher_host.h
diff --git a/content/browser/renderer_host/quota_dispatcher_host.h b/content/browser/renderer_host/quota_dispatcher_host.h
new file mode 100644
index 0000000000000000000000000000000000000000..c707f3b33eeb62e8a0c49f3d5170ca18fadd2662
--- /dev/null
+++ b/content/browser/renderer_host/quota_dispatcher_host.h
@@ -0,0 +1,35 @@
+// 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_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_
+#define CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_
+
+#include "base/basictypes.h"
+#include "content/browser/browser_message_filter.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageQuotaType.h"
+
+class GURL;
+
+namespace IPC {
+class Message;
+}
+
+class QuotaDispatcherHost : public BrowserMessageFilter {
+ public:
+ ~QuotaDispatcherHost();
+ bool OnMessageReceived(const IPC::Message& message, bool* message_was_ok);
+
+ private:
+ void OnQueryUsageAndQuota(
+ int request_id,
+ const GURL& gurl,
michaeln 2011/04/07 20:57:31 'origin' may be a better param name
ericu 2011/04/08 03:31:18 +1
kinuko 2011/04/08 09:02:53 Done.
+ WebKit::WebStorageQuotaType type);
+ void OnRequestStorageQuota(
+ int request_id,
+ const GURL& gurl,
+ WebKit::WebStorageQuotaType type,
+ int requested_size);
+};
+
+#endif // CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_

Powered by Google App Engine
This is Rietveld 408576698