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 WEBKIT_BROWSER_QUOTA_MOCK_QUOTA_MANAGER_PROXY_H_ | 5 #ifndef CONTENT_BROWSER_QUOTA_MOCK_QUOTA_MANAGER_PROXY_H_ |
6 #define WEBKIT_BROWSER_QUOTA_MOCK_QUOTA_MANAGER_PROXY_H_ | 6 #define CONTENT_BROWSER_QUOTA_MOCK_QUOTA_MANAGER_PROXY_H_ |
7 | 7 |
| 8 #include "content/browser/quota/mock_quota_manager.h" |
8 #include "url/gurl.h" | 9 #include "url/gurl.h" |
9 #include "webkit/browser/quota/mock_quota_manager.h" | |
10 #include "webkit/browser/quota/quota_client.h" | 10 #include "webkit/browser/quota/quota_client.h" |
11 #include "webkit/browser/quota/quota_manager_proxy.h" | 11 #include "webkit/browser/quota/quota_manager_proxy.h" |
12 #include "webkit/common/quota/quota_types.h" | 12 #include "webkit/common/quota/quota_types.h" |
13 | 13 |
14 namespace quota { | 14 using quota::QuotaManagerProxy; |
| 15 |
| 16 namespace content { |
15 | 17 |
16 class MockQuotaManager; | 18 class MockQuotaManager; |
17 | 19 |
18 class MockQuotaManagerProxy : public QuotaManagerProxy { | 20 class MockQuotaManagerProxy : public QuotaManagerProxy { |
19 public: | 21 public: |
20 // It is ok to give NULL to |quota_manager|. | 22 // It is ok to give NULL to |quota_manager|. |
21 MockQuotaManagerProxy(MockQuotaManager* quota_manager, | 23 MockQuotaManagerProxy(MockQuotaManager* quota_manager, |
22 base::SingleThreadTaskRunner* task_runner); | 24 base::SingleThreadTaskRunner* task_runner); |
23 | 25 |
24 virtual void RegisterClient(QuotaClient* client) OVERRIDE; | 26 virtual void RegisterClient(QuotaClient* client) OVERRIDE; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 int storage_modified_count_; | 75 int storage_modified_count_; |
74 GURL last_notified_origin_; | 76 GURL last_notified_origin_; |
75 StorageType last_notified_type_; | 77 StorageType last_notified_type_; |
76 int64 last_notified_delta_; | 78 int64 last_notified_delta_; |
77 | 79 |
78 QuotaClient* registered_client_; | 80 QuotaClient* registered_client_; |
79 | 81 |
80 DISALLOW_COPY_AND_ASSIGN(MockQuotaManagerProxy); | 82 DISALLOW_COPY_AND_ASSIGN(MockQuotaManagerProxy); |
81 }; | 83 }; |
82 | 84 |
83 } // namespace quota | 85 } // namespace content |
84 | 86 |
85 #endif // WEBKIT_BROWSER_QUOTA_MOCK_QUOTA_MANAGER_PROXY_H_ | 87 #endif // CONTENT_BROWSER_QUOTA_MOCK_QUOTA_MANAGER_PROXY_H_ |
OLD | NEW |