OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "content/browser/browser_message_filter.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageQuotaType.h
" |
| 11 |
| 12 class GURL; |
| 13 |
| 14 namespace IPC { |
| 15 class Message; |
| 16 } |
| 17 |
| 18 class QuotaDispatcherHost : public BrowserMessageFilter { |
| 19 public: |
| 20 ~QuotaDispatcherHost(); |
| 21 bool OnMessageReceived(const IPC::Message& message, bool* message_was_ok); |
| 22 |
| 23 private: |
| 24 void OnQueryUsageAndQuota( |
| 25 int request_id, |
| 26 const GURL& origin_url, |
| 27 WebKit::WebStorageQuotaType type); |
| 28 void OnRequestStorageQuota( |
| 29 int request_id, |
| 30 const GURL& origin_url, |
| 31 WebKit::WebStorageQuotaType type, |
| 32 int requested_size); |
| 33 }; |
| 34 |
| 35 #endif // CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_ |
OLD | NEW |