OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_QUOTA_MOCK_QUOTA_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_QUOTA_MOCK_QUOTA_MANAGER_H_ |
6 #define CONTENT_BROWSER_QUOTA_MOCK_QUOTA_MANAGER_H_ | 6 #define CONTENT_BROWSER_QUOTA_MOCK_QUOTA_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <utility> | 10 #include <utility> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "url/gurl.h" | 14 #include "url/gurl.h" |
15 #include "webkit/browser/quota/quota_client.h" | 15 #include "storage/browser/quota/quota_client.h" |
16 #include "webkit/browser/quota/quota_manager.h" | 16 #include "storage/browser/quota/quota_manager.h" |
17 #include "webkit/browser/quota/quota_task.h" | 17 #include "storage/browser/quota/quota_task.h" |
18 #include "webkit/common/quota/quota_types.h" | 18 #include "storage/common/quota/quota_types.h" |
19 | 19 |
20 using quota::GetOriginsCallback; | 20 using quota::GetOriginsCallback; |
21 using quota::QuotaClient; | 21 using quota::QuotaClient; |
22 using quota::QuotaManager; | 22 using quota::QuotaManager; |
23 using quota::QuotaStatusCode; | 23 using quota::QuotaStatusCode; |
24 using quota::SpecialStoragePolicy; | 24 using quota::SpecialStoragePolicy; |
25 using quota::StatusCallback; | 25 using quota::StatusCallback; |
26 using quota::StorageType; | 26 using quota::StorageType; |
27 | 27 |
28 namespace content { | 28 namespace content { |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 std::vector<OriginInfo> origins_; | 143 std::vector<OriginInfo> origins_; |
144 UsageAndQuotaMap usage_and_quota_map_; | 144 UsageAndQuotaMap usage_and_quota_map_; |
145 base::WeakPtrFactory<MockQuotaManager> weak_factory_; | 145 base::WeakPtrFactory<MockQuotaManager> weak_factory_; |
146 | 146 |
147 DISALLOW_COPY_AND_ASSIGN(MockQuotaManager); | 147 DISALLOW_COPY_AND_ASSIGN(MockQuotaManager); |
148 }; | 148 }; |
149 | 149 |
150 } // namespace content | 150 } // namespace content |
151 | 151 |
152 #endif // CONTENT_BROWSER_QUOTA_MOCK_QUOTA_MANAGER_H_ | 152 #endif // CONTENT_BROWSER_QUOTA_MOCK_QUOTA_MANAGER_H_ |
OLD | NEW |