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_MOCK_STORAGE_CLIENT_H_ | 5 #ifndef WEBKIT_BROWSER_QUOTA_MOCK_STORAGE_CLIENT_H_ |
6 #define WEBKIT_BROWSER_QUOTA_MOCK_STORAGE_CLIENT_H_ | 6 #define WEBKIT_BROWSER_QUOTA_MOCK_STORAGE_CLIENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 virtual void GetOriginUsage(const GURL& origin_url, | 52 virtual void GetOriginUsage(const GURL& origin_url, |
53 StorageType type, | 53 StorageType type, |
54 const GetUsageCallback& callback) OVERRIDE; | 54 const GetUsageCallback& callback) OVERRIDE; |
55 virtual void GetOriginsForType(StorageType type, | 55 virtual void GetOriginsForType(StorageType type, |
56 const GetOriginsCallback& callback) OVERRIDE; | 56 const GetOriginsCallback& callback) OVERRIDE; |
57 virtual void GetOriginsForHost(StorageType type, const std::string& host, | 57 virtual void GetOriginsForHost(StorageType type, const std::string& host, |
58 const GetOriginsCallback& callback) OVERRIDE; | 58 const GetOriginsCallback& callback) OVERRIDE; |
59 virtual void DeleteOriginData(const GURL& origin, | 59 virtual void DeleteOriginData(const GURL& origin, |
60 StorageType type, | 60 StorageType type, |
61 const DeletionCallback& callback) OVERRIDE; | 61 const DeletionCallback& callback) OVERRIDE; |
| 62 virtual bool DoesSupport(quota::StorageType type) const OVERRIDE; |
62 | 63 |
63 private: | 64 private: |
64 void RunGetOriginUsage(const GURL& origin_url, | 65 void RunGetOriginUsage(const GURL& origin_url, |
65 StorageType type, | 66 StorageType type, |
66 const GetUsageCallback& callback); | 67 const GetUsageCallback& callback); |
67 void RunGetOriginsForType(StorageType type, | 68 void RunGetOriginsForType(StorageType type, |
68 const GetOriginsCallback& callback); | 69 const GetOriginsCallback& callback); |
69 void RunGetOriginsForHost(StorageType type, | 70 void RunGetOriginsForHost(StorageType type, |
70 const std::string& host, | 71 const std::string& host, |
71 const GetOriginsCallback& callback); | 72 const GetOriginsCallback& callback); |
(...skipping 14 matching lines...) Expand all Loading... |
86 int mock_time_counter_; | 87 int mock_time_counter_; |
87 | 88 |
88 base::WeakPtrFactory<MockStorageClient> weak_factory_; | 89 base::WeakPtrFactory<MockStorageClient> weak_factory_; |
89 | 90 |
90 DISALLOW_COPY_AND_ASSIGN(MockStorageClient); | 91 DISALLOW_COPY_AND_ASSIGN(MockStorageClient); |
91 }; | 92 }; |
92 | 93 |
93 } // namespace quota | 94 } // namespace quota |
94 | 95 |
95 #endif // WEBKIT_BROWSER_QUOTA_MOCK_STORAGE_CLIENT_H_ | 96 #endif // WEBKIT_BROWSER_QUOTA_MOCK_STORAGE_CLIENT_H_ |
OLD | NEW |