OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 WEBKIT_BROWSER_QUOTA_QUOTA_CALLBACKS_H_ | 5 #ifndef STORAGE_BROWSER_QUOTA_QUOTA_CALLBACKS_H_ |
6 #define WEBKIT_BROWSER_QUOTA_QUOTA_CALLBACKS_H_ | 6 #define STORAGE_BROWSER_QUOTA_QUOTA_CALLBACKS_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/tuple.h" | 15 #include "base/tuple.h" |
16 #include "webkit/common/quota/quota_status_code.h" | 16 #include "storage/common/quota/quota_status_code.h" |
17 #include "webkit/common/quota/quota_types.h" | 17 #include "storage/common/quota/quota_types.h" |
18 | 18 |
19 class GURL; | 19 class GURL; |
20 | 20 |
21 namespace storage { | 21 namespace storage { |
22 | 22 |
23 struct UsageInfo; | 23 struct UsageInfo; |
24 typedef std::vector<UsageInfo> UsageInfoEntries; | 24 typedef std::vector<UsageInfo> UsageInfoEntries; |
25 | 25 |
26 // Common callback types that are used throughout in the quota module. | 26 // Common callback types that are used throughout in the quota module. |
27 typedef base::Callback<void(int64 usage, | 27 typedef base::Callback<void(int64 usage, |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 }; | 119 }; |
120 | 120 |
121 typedef CallbackQueueMap<UsageCallback, std::string, Tuple1<int64> > | 121 typedef CallbackQueueMap<UsageCallback, std::string, Tuple1<int64> > |
122 HostUsageCallbackMap; | 122 HostUsageCallbackMap; |
123 typedef CallbackQueueMap<QuotaCallback, std::string, | 123 typedef CallbackQueueMap<QuotaCallback, std::string, |
124 Tuple2<QuotaStatusCode, int64> > | 124 Tuple2<QuotaStatusCode, int64> > |
125 HostQuotaCallbackMap; | 125 HostQuotaCallbackMap; |
126 | 126 |
127 } // namespace storage | 127 } // namespace storage |
128 | 128 |
129 #endif // WEBKIT_QUOTA_QUOTA_TYPES_H_ | 129 #endif // STORAGE_QUOTA_QUOTA_TYPES_H_ |
OLD | NEW |