| 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_CACHE_STORAGE_CACHE_STORAGE_QUOTA_CLIENT_H_ | 5 #ifndef CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_QUOTA_CLIENT_H_ |
| 6 #define CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_QUOTA_CLIENT_H_ | 6 #define CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_QUOTA_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 11 #include "storage/browser/quota/quota_client.h" | 11 #include "storage/browser/quota/quota_client.h" |
| 12 #include "storage/common/quota/quota_types.h" | 12 #include "storage/common/quota/quota_types.h" |
| 13 | 13 |
| 14 namespace storage { | |
| 15 class QuotaManagerProxy; | |
| 16 } | |
| 17 | |
| 18 namespace content { | 14 namespace content { |
| 19 class CacheStorageManager; | 15 class CacheStorageManager; |
| 20 | 16 |
| 21 // CacheStorageQuotaClient is owned by the QuotaManager. There is one per | 17 // CacheStorageQuotaClient is owned by the QuotaManager. There is one per |
| 22 // CacheStorageManager, and therefore one per | 18 // CacheStorageManager, and therefore one per |
| 23 // ServiceWorkerContextCore. | 19 // ServiceWorkerContextCore. |
| 24 class CONTENT_EXPORT CacheStorageQuotaClient : public storage::QuotaClient { | 20 class CONTENT_EXPORT CacheStorageQuotaClient : public storage::QuotaClient { |
| 25 public: | 21 public: |
| 26 explicit CacheStorageQuotaClient( | 22 explicit CacheStorageQuotaClient( |
| 27 base::WeakPtr<CacheStorageManager> cache_manager); | 23 base::WeakPtr<CacheStorageManager> cache_manager); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 45 | 41 |
| 46 private: | 42 private: |
| 47 base::WeakPtr<CacheStorageManager> cache_manager_; | 43 base::WeakPtr<CacheStorageManager> cache_manager_; |
| 48 | 44 |
| 49 DISALLOW_COPY_AND_ASSIGN(CacheStorageQuotaClient); | 45 DISALLOW_COPY_AND_ASSIGN(CacheStorageQuotaClient); |
| 50 }; | 46 }; |
| 51 | 47 |
| 52 } // namespace content | 48 } // namespace content |
| 53 | 49 |
| 54 #endif // CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_QUOTA_CLIENT_H_ | 50 #endif // CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_QUOTA_CLIENT_H_ |
| OLD | NEW |