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_BROWER_IN_PROCESS_WEBKIT_QUOTA_CLIENT_H_ | 5 #ifndef CONTENT_BROWER_IN_PROCESS_WEBKIT_QUOTA_CLIENT_H_ |
6 #define CONTENT_BROWER_IN_PROCESS_WEBKIT_QUOTA_CLIENT_H_ | 6 #define CONTENT_BROWER_IN_PROCESS_WEBKIT_QUOTA_CLIENT_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 class GetOriginUsageTask; | 46 class GetOriginUsageTask; |
47 class GetOriginsTaskBase; | 47 class GetOriginsTaskBase; |
48 class GetAllOriginsTask; | 48 class GetAllOriginsTask; |
49 class GetOriginsForHostTask; | 49 class GetOriginsForHostTask; |
50 | 50 |
51 typedef quota::CallbackQueueMap1 | 51 typedef quota::CallbackQueueMap1 |
52 <GetUsageCallback*, | 52 <GetUsageCallback*, |
53 GURL, // origin | 53 GURL, // origin |
54 int64 | 54 int64 |
55 > UsageForOriginCallbackMap; | 55 > UsageForOriginCallbackMap; |
56 typedef quota::CallbackQueue1 | 56 typedef quota::CallbackQueue2 |
57 <GetOriginsCallback*, | 57 <GetOriginsCallback*, |
58 const std::set<GURL>& | 58 const std::set<GURL>&, |
| 59 quota::StorageType |
59 > OriginsForTypeCallbackQueue; | 60 > OriginsForTypeCallbackQueue; |
60 typedef quota::CallbackQueueMap1 | 61 typedef quota::CallbackQueueMap2 |
61 <GetOriginsCallback*, | 62 <GetOriginsCallback*, |
62 std::string, // host | 63 std::string, // host |
63 const std::set<GURL>& | 64 const std::set<GURL>&, |
| 65 quota::StorageType |
64 > OriginsForHostCallbackMap; | 66 > OriginsForHostCallbackMap; |
65 | 67 |
66 void DidGetOriginUsage(const GURL& origin_url, int64 usage); | 68 void DidGetOriginUsage(const GURL& origin_url, int64 usage); |
67 void DidGetAllOrigins(const std::set<GURL>& origins); | 69 void DidGetAllOrigins(const std::set<GURL>& origins, quota::StorageType type); |
68 void DidGetOriginsForHost( | 70 void DidGetOriginsForHost( |
69 const std::string& host, const std::set<GURL>& origins); | 71 const std::string& host, const std::set<GURL>& origins, |
| 72 quota::StorageType type); |
70 | 73 |
71 scoped_refptr<base::MessageLoopProxy> webkit_thread_message_loop_; | 74 scoped_refptr<base::MessageLoopProxy> webkit_thread_message_loop_; |
72 scoped_refptr<IndexedDBContext> indexed_db_context_; | 75 scoped_refptr<IndexedDBContext> indexed_db_context_; |
73 UsageForOriginCallbackMap usage_for_origin_callbacks_; | 76 UsageForOriginCallbackMap usage_for_origin_callbacks_; |
74 OriginsForTypeCallbackQueue origins_for_type_callbacks_; | 77 OriginsForTypeCallbackQueue origins_for_type_callbacks_; |
75 OriginsForHostCallbackMap origins_for_host_callbacks_; | 78 OriginsForHostCallbackMap origins_for_host_callbacks_; |
76 | 79 |
77 DISALLOW_COPY_AND_ASSIGN(IndexedDBQuotaClient); | 80 DISALLOW_COPY_AND_ASSIGN(IndexedDBQuotaClient); |
78 }; | 81 }; |
79 | 82 |
80 #endif // CONTENT_BROWER_IN_PROCESS_WEBKIT_QUOTA_CLIENT_H_ | 83 #endif // CONTENT_BROWER_IN_PROCESS_WEBKIT_QUOTA_CLIENT_H_ |
OLD | NEW |