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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
| 11 #include <memory> |
11 #include <set> | 12 #include <set> |
12 #include <utility> | 13 #include <utility> |
13 #include <vector> | 14 #include <vector> |
14 | 15 |
15 #include "base/macros.h" | 16 #include "base/macros.h" |
16 #include "base/memory/scoped_ptr.h" | |
17 #include "storage/browser/quota/quota_client.h" | 17 #include "storage/browser/quota/quota_client.h" |
18 #include "storage/browser/quota/quota_manager.h" | 18 #include "storage/browser/quota/quota_manager.h" |
19 #include "storage/browser/quota/quota_task.h" | 19 #include "storage/browser/quota/quota_task.h" |
20 #include "storage/common/quota/quota_types.h" | 20 #include "storage/common/quota/quota_types.h" |
21 #include "url/gurl.h" | 21 #include "url/gurl.h" |
22 | 22 |
23 using storage::GetOriginsCallback; | 23 using storage::GetOriginsCallback; |
24 using storage::QuotaClient; | 24 using storage::QuotaClient; |
25 using storage::QuotaManager; | 25 using storage::QuotaManager; |
26 using storage::QuotaStatusCode; | 26 using storage::QuotaStatusCode; |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 std::vector<OriginInfo> origins_; | 145 std::vector<OriginInfo> origins_; |
146 UsageAndQuotaMap usage_and_quota_map_; | 146 UsageAndQuotaMap usage_and_quota_map_; |
147 base::WeakPtrFactory<MockQuotaManager> weak_factory_; | 147 base::WeakPtrFactory<MockQuotaManager> weak_factory_; |
148 | 148 |
149 DISALLOW_COPY_AND_ASSIGN(MockQuotaManager); | 149 DISALLOW_COPY_AND_ASSIGN(MockQuotaManager); |
150 }; | 150 }; |
151 | 151 |
152 } // namespace content | 152 } // namespace content |
153 | 153 |
154 #endif // CONTENT_BROWSER_QUOTA_MOCK_QUOTA_MANAGER_H_ | 154 #endif // CONTENT_BROWSER_QUOTA_MOCK_QUOTA_MANAGER_H_ |
OLD | NEW |