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..ac75278354e81f51aedc01403663759353d05e9b |
--- /dev/null |
+++ b/content/browser/renderer_host/quota_dispatcher_host.h |
@@ -0,0 +1,31 @@ |
+// 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; |
+ |
+class QuotaDispatcherHost : public BrowserMessageFilter { |
+ public: |
+ ~QuotaDispatcherHost(); |
+ bool OnMessageReceived(const IPC::Message& message, bool* message_was_ok); |
+ |
+ private: |
+ void OnQueryStorageUsageAndQuota( |
+ int request_id, |
+ const GURL& origin_url, |
+ WebKit::WebStorageQuotaType type); |
+ void OnRequestStorageQuota( |
+ int request_id, |
+ const GURL& origin_url, |
+ WebKit::WebStorageQuotaType type, |
+ int64 requested_size); |
+}; |
+ |
+#endif // CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_ |