Chromium Code Reviews| 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..711741ad042b3ba405c2fb1c1f0a4f6f056980e3 |
| --- /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; |
|
jam
2011/04/12 17:53:52
not needed
|
| +} |
| + |
| +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_ |