Chromium Code Reviews| 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, | |
| 72 | |
|
nhiroki
2016/08/18 00:05:42
blank line
jkarlin
2016/08/18 14:08:23
Done.
| |
| 71 const CacheStorageCache::ResponseCallback& callback); | 73 const CacheStorageCache::ResponseCallback& callback); |
| 72 void MatchAllCaches(const GURL& origin, | 74 void MatchAllCaches(const GURL& origin, |
| 73 std::unique_ptr<ServiceWorkerFetchRequest> request, | 75 std::unique_ptr<ServiceWorkerFetchRequest> request, |
| 76 const CacheStorageCacheQueryParams& match_params, | |
| 77 | |
|
nhiroki
2016/08/18 00:05:42
ditto.
jkarlin
2016/08/18 14:08:23
Done.
| |
| 74 const CacheStorageCache::ResponseCallback& callback); | 78 const CacheStorageCache::ResponseCallback& callback); |
| 75 | 79 |
| 76 // This must be called before creating any of the public *Cache functions | 80 // This must be called before creating any of the public *Cache functions |
| 77 // above. | 81 // above. |
| 78 void SetBlobParametersForCache( | 82 void SetBlobParametersForCache( |
| 79 scoped_refptr<net::URLRequestContextGetter> request_context_getter, | 83 scoped_refptr<net::URLRequestContextGetter> request_context_getter, |
| 80 base::WeakPtr<storage::BlobStorageContext> blob_storage_context); | 84 base::WeakPtr<storage::BlobStorageContext> blob_storage_context); |
| 81 | 85 |
| 82 base::WeakPtr<CacheStorageManager> AsWeakPtr() { | 86 base::WeakPtr<CacheStorageManager> AsWeakPtr() { |
| 83 return weak_ptr_factory_.GetWeakPtr(); | 87 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_; | 165 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; |
| 162 base::WeakPtr<storage::BlobStorageContext> blob_context_; | 166 base::WeakPtr<storage::BlobStorageContext> blob_context_; |
| 163 | 167 |
| 164 base::WeakPtrFactory<CacheStorageManager> weak_ptr_factory_; | 168 base::WeakPtrFactory<CacheStorageManager> weak_ptr_factory_; |
| 165 DISALLOW_COPY_AND_ASSIGN(CacheStorageManager); | 169 DISALLOW_COPY_AND_ASSIGN(CacheStorageManager); |
| 166 }; | 170 }; |
| 167 | 171 |
| 168 } // namespace content | 172 } // namespace content |
| 169 | 173 |
| 170 #endif // CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_MANAGER_H_ | 174 #endif // CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_MANAGER_H_ |
| OLD | NEW |