OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/id_map.h" | 9 #include "base/id_map.h" |
10 #include "content/public/browser/browser_message_filter.h" | 10 #include "content/public/browser/browser_message_filter.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 protected: | 36 protected: |
37 virtual ~QuotaDispatcherHost(); | 37 virtual ~QuotaDispatcherHost(); |
38 | 38 |
39 private: | 39 private: |
40 class RequestDispatcher; | 40 class RequestDispatcher; |
41 class QueryUsageAndQuotaDispatcher; | 41 class QueryUsageAndQuotaDispatcher; |
42 class RequestQuotaDispatcher; | 42 class RequestQuotaDispatcher; |
43 | 43 |
44 void OnQueryStorageUsageAndQuota( | 44 void OnQueryStorageUsageAndQuota( |
| 45 int ipc_thread_id, |
45 int request_id, | 46 int request_id, |
46 const GURL& origin_url, | 47 const GURL& origin_url, |
47 quota::StorageType type); | 48 quota::StorageType type); |
48 void OnRequestStorageQuota( | 49 void OnRequestStorageQuota( |
49 int render_view_id, | 50 int render_view_id, |
50 int request_id, | 51 int request_id, |
51 const GURL& origin_url, | 52 const GURL& origin_url, |
52 quota::StorageType type, | 53 quota::StorageType type, |
53 int64 requested_size); | 54 int64 requested_size); |
54 | 55 |
55 // The ID of this process. | 56 // The ID of this process. |
56 int process_id_; | 57 int process_id_; |
57 | 58 |
58 quota::QuotaManager* quota_manager_; | 59 quota::QuotaManager* quota_manager_; |
59 scoped_refptr<QuotaPermissionContext> permission_context_; | 60 scoped_refptr<QuotaPermissionContext> permission_context_; |
60 | 61 |
61 IDMap<RequestDispatcher, IDMapOwnPointer> outstanding_requests_; | 62 IDMap<RequestDispatcher, IDMapOwnPointer> outstanding_requests_; |
62 | 63 |
63 DISALLOW_IMPLICIT_CONSTRUCTORS(QuotaDispatcherHost); | 64 DISALLOW_IMPLICIT_CONSTRUCTORS(QuotaDispatcherHost); |
64 }; | 65 }; |
65 | 66 |
66 } // namespace content | 67 } // namespace content |
67 | 68 |
68 #endif // CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_ | 69 #endif // CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_ |
OLD | NEW |