| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_CHILD_QUOTA_DISPATCHER_H_ | 5 #ifndef CONTENT_CHILD_QUOTA_DISPATCHER_H_ |
| 6 #define CONTENT_CHILD_QUOTA_DISPATCHER_H_ | 6 #define CONTENT_CHILD_QUOTA_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 QuotaMessageFilter* quota_message_filter); | 57 QuotaMessageFilter* quota_message_filter); |
| 58 | 58 |
| 59 // WorkerThread::Observer implementation. | 59 // WorkerThread::Observer implementation. |
| 60 void WillStopCurrentWorkerThread() override; | 60 void WillStopCurrentWorkerThread() override; |
| 61 | 61 |
| 62 void OnMessageReceived(const IPC::Message& msg); | 62 void OnMessageReceived(const IPC::Message& msg); |
| 63 | 63 |
| 64 void QueryStorageUsageAndQuota(const GURL& gurl, | 64 void QueryStorageUsageAndQuota(const GURL& gurl, |
| 65 storage::StorageType type, | 65 storage::StorageType type, |
| 66 std::unique_ptr<Callback> callback); | 66 std::unique_ptr<Callback> callback); |
| 67 void RequestStorageQuota(int render_view_id, | 67 void RequestStorageQuota(int render_frame_id, |
| 68 const GURL& gurl, | 68 const GURL& gurl, |
| 69 storage::StorageType type, | 69 storage::StorageType type, |
| 70 uint64_t requested_size, | 70 uint64_t requested_size, |
| 71 std::unique_ptr<Callback> callback); | 71 std::unique_ptr<Callback> callback); |
| 72 | 72 |
| 73 // Creates a new Callback instance for WebStorageQuotaCallbacks. | 73 // Creates a new Callback instance for WebStorageQuotaCallbacks. |
| 74 static std::unique_ptr<Callback> CreateWebStorageQuotaCallbacksWrapper( | 74 static std::unique_ptr<Callback> CreateWebStorageQuotaCallbacksWrapper( |
| 75 blink::WebStorageQuotaCallbacks callbacks); | 75 blink::WebStorageQuotaCallbacks callbacks); |
| 76 | 76 |
| 77 private: | 77 private: |
| (...skipping 10 matching lines...) Expand all Loading... |
| 88 | 88 |
| 89 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 89 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 90 scoped_refptr<QuotaMessageFilter> quota_message_filter_; | 90 scoped_refptr<QuotaMessageFilter> quota_message_filter_; |
| 91 | 91 |
| 92 DISALLOW_COPY_AND_ASSIGN(QuotaDispatcher); | 92 DISALLOW_COPY_AND_ASSIGN(QuotaDispatcher); |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 } // namespace content | 95 } // namespace content |
| 96 | 96 |
| 97 #endif // CONTENT_CHILD_QUOTA_DISPATCHER_H_ | 97 #endif // CONTENT_CHILD_QUOTA_DISPATCHER_H_ |
| OLD | NEW |