| 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_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_MANAGER_H_ |
| 6 #define CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_MANAGER_H_ | 6 #define CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 const std::string& cache_name, | 61 const std::string& cache_name, |
| 62 const CacheStorage::BoolAndErrorCallback& callback); | 62 const CacheStorage::BoolAndErrorCallback& callback); |
| 63 void DeleteCache(const GURL& origin, | 63 void DeleteCache(const GURL& origin, |
| 64 const std::string& cache_name, | 64 const std::string& cache_name, |
| 65 const CacheStorage::BoolAndErrorCallback& callback); | 65 const CacheStorage::BoolAndErrorCallback& callback); |
| 66 void EnumerateCaches(const GURL& origin, | 66 void EnumerateCaches(const GURL& origin, |
| 67 const CacheStorage::StringsAndErrorCallback& callback); | 67 const CacheStorage::StringsAndErrorCallback& callback); |
| 68 void MatchCache(const GURL& origin, | 68 void MatchCache(const GURL& origin, |
| 69 const std::string& cache_name, | 69 const std::string& cache_name, |
| 70 std::unique_ptr<ServiceWorkerFetchRequest> request, | 70 std::unique_ptr<ServiceWorkerFetchRequest> request, |
| 71 const CacheStorageCacheQueryParams& match_params, |
| 71 const CacheStorageCache::ResponseCallback& callback); | 72 const CacheStorageCache::ResponseCallback& callback); |
| 72 void MatchAllCaches(const GURL& origin, | 73 void MatchAllCaches(const GURL& origin, |
| 73 std::unique_ptr<ServiceWorkerFetchRequest> request, | 74 std::unique_ptr<ServiceWorkerFetchRequest> request, |
| 75 const CacheStorageCacheQueryParams& match_params, |
| 74 const CacheStorageCache::ResponseCallback& callback); | 76 const CacheStorageCache::ResponseCallback& callback); |
| 75 | 77 |
| 76 // This must be called before creating any of the public *Cache functions | 78 // This must be called before creating any of the public *Cache functions |
| 77 // above. | 79 // above. |
| 78 void SetBlobParametersForCache( | 80 void SetBlobParametersForCache( |
| 79 scoped_refptr<net::URLRequestContextGetter> request_context_getter, | 81 scoped_refptr<net::URLRequestContextGetter> request_context_getter, |
| 80 base::WeakPtr<storage::BlobStorageContext> blob_storage_context); | 82 base::WeakPtr<storage::BlobStorageContext> blob_storage_context); |
| 81 | 83 |
| 82 base::WeakPtr<CacheStorageManager> AsWeakPtr() { | 84 base::WeakPtr<CacheStorageManager> AsWeakPtr() { |
| 83 return weak_ptr_factory_.GetWeakPtr(); | 85 return weak_ptr_factory_.GetWeakPtr(); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; | 163 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; |
| 162 base::WeakPtr<storage::BlobStorageContext> blob_context_; | 164 base::WeakPtr<storage::BlobStorageContext> blob_context_; |
| 163 | 165 |
| 164 base::WeakPtrFactory<CacheStorageManager> weak_ptr_factory_; | 166 base::WeakPtrFactory<CacheStorageManager> weak_ptr_factory_; |
| 165 DISALLOW_COPY_AND_ASSIGN(CacheStorageManager); | 167 DISALLOW_COPY_AND_ASSIGN(CacheStorageManager); |
| 166 }; | 168 }; |
| 167 | 169 |
| 168 } // namespace content | 170 } // namespace content |
| 169 | 171 |
| 170 #endif // CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_MANAGER_H_ | 172 #endif // CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_MANAGER_H_ |
| OLD | NEW |