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_PROXY_H_ | 5 #ifndef CONTENT_BROWSER_QUOTA_MOCK_QUOTA_MANAGER_PROXY_H_ |
6 #define CONTENT_BROWSER_QUOTA_MOCK_QUOTA_MANAGER_PROXY_H_ | 6 #define CONTENT_BROWSER_QUOTA_MOCK_QUOTA_MANAGER_PROXY_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 void NotifyOriginInUse(const GURL& origin) override {} | 34 void NotifyOriginInUse(const GURL& origin) override {} |
35 void NotifyOriginNoLongerInUse(const GURL& origin) override {} | 35 void NotifyOriginNoLongerInUse(const GURL& origin) override {} |
36 void SetUsageCacheEnabled(QuotaClient::ID client_id, | 36 void SetUsageCacheEnabled(QuotaClient::ID client_id, |
37 const GURL& origin, | 37 const GURL& origin, |
38 StorageType type, | 38 StorageType type, |
39 bool enabled) override {} | 39 bool enabled) override {} |
40 void GetUsageAndQuota( | 40 void GetUsageAndQuota( |
41 base::SequencedTaskRunner* original_task_runner, | 41 base::SequencedTaskRunner* original_task_runner, |
42 const GURL& origin, | 42 const GURL& origin, |
43 StorageType type, | 43 StorageType type, |
44 const QuotaManager::GetUsageAndQuotaCallback& callback) override {} | 44 const QuotaManager::GetUsageAndQuotaCallback& callback) override; |
45 | 45 |
46 // Validates the |client_id| and updates the internal access count | 46 // Validates the |client_id| and updates the internal access count |
47 // which can be accessed via notify_storage_accessed_count(). | 47 // which can be accessed via notify_storage_accessed_count(). |
48 // The also records the |origin| and |type| in last_notified_origin_ and | 48 // The also records the |origin| and |type| in last_notified_origin_ and |
49 // last_notified_type_. | 49 // last_notified_type_. |
50 void NotifyStorageAccessed(QuotaClient::ID client_id, | 50 void NotifyStorageAccessed(QuotaClient::ID client_id, |
51 const GURL& origin, | 51 const GURL& origin, |
52 StorageType type) override; | 52 StorageType type) override; |
53 | 53 |
54 // Records the |origin|, |type| and |delta| as last_notified_origin_, | 54 // Records the |origin|, |type| and |delta| as last_notified_origin_, |
(...skipping 26 matching lines...) Expand all Loading... |
81 int64_t last_notified_delta_; | 81 int64_t last_notified_delta_; |
82 | 82 |
83 QuotaClient* registered_client_; | 83 QuotaClient* registered_client_; |
84 | 84 |
85 DISALLOW_COPY_AND_ASSIGN(MockQuotaManagerProxy); | 85 DISALLOW_COPY_AND_ASSIGN(MockQuotaManagerProxy); |
86 }; | 86 }; |
87 | 87 |
88 } // namespace content | 88 } // namespace content |
89 | 89 |
90 #endif // CONTENT_BROWSER_QUOTA_MOCK_QUOTA_MANAGER_PROXY_H_ | 90 #endif // CONTENT_BROWSER_QUOTA_MOCK_QUOTA_MANAGER_PROXY_H_ |
OLD | NEW |