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_QUOTA_QUOTA_CALLBACKS_H_ | 5 #ifndef WEBKIT_BROWSER_QUOTA_QUOTA_CALLBACKS_H_ |
6 #define WEBKIT_QUOTA_QUOTA_CALLBACKS_H_ | 6 #define WEBKIT_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/quota/quota_status_code.h" | 16 #include "webkit/common/quota/quota_status_code.h" |
17 #include "webkit/quota/quota_types.h" | 17 #include "webkit/common/quota/quota_types.h" |
18 | 18 |
19 class GURL; | 19 class GURL; |
20 | 20 |
21 namespace quota { | 21 namespace quota { |
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 118 |
119 typedef CallbackQueueMap<UsageCallback, std::string, Tuple1<int64> > | 119 typedef CallbackQueueMap<UsageCallback, std::string, Tuple1<int64> > |
120 HostUsageCallbackMap; | 120 HostUsageCallbackMap; |
121 typedef CallbackQueueMap<QuotaCallback, std::string, | 121 typedef CallbackQueueMap<QuotaCallback, std::string, |
122 Tuple2<QuotaStatusCode, int64> > | 122 Tuple2<QuotaStatusCode, int64> > |
123 HostQuotaCallbackMap; | 123 HostQuotaCallbackMap; |
124 | 124 |
125 } // namespace quota | 125 } // namespace quota |
126 | 126 |
127 #endif // WEBKIT_QUOTA_QUOTA_TYPES_H_ | 127 #endif // WEBKIT_QUOTA_QUOTA_TYPES_H_ |
OLD | NEW |