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 class QuotaDispatcherHost : public BrowserMessageFilter { |
| 15 public: |
| 16 ~QuotaDispatcherHost(); |
| 17 bool OnMessageReceived(const IPC::Message& message, bool* message_was_ok); |
| 18 |
| 19 private: |
| 20 void OnQueryStorageUsageAndQuota( |
| 21 int request_id, |
| 22 const GURL& origin_url, |
| 23 WebKit::WebStorageQuotaType type); |
| 24 void OnRequestStorageQuota( |
| 25 int request_id, |
| 26 const GURL& origin_url, |
| 27 WebKit::WebStorageQuotaType type, |
| 28 int64 requested_size); |
| 29 }; |
| 30 |
| 31 #endif // CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_ |
OLD | NEW |