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