| 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_H_ | 5 #ifndef CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_H_ |
| 6 #define CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_H_ | 6 #define CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 const BoolAndErrorCallback& callback); | 159 const BoolAndErrorCallback& callback); |
| 160 | 160 |
| 161 // The DeleteCache callbacks are below. | 161 // The DeleteCache callbacks are below. |
| 162 void DeleteCacheImpl(const std::string& cache_name, | 162 void DeleteCacheImpl(const std::string& cache_name, |
| 163 const BoolAndErrorCallback& callback); | 163 const BoolAndErrorCallback& callback); |
| 164 void DeleteCacheDidWriteIndex( | 164 void DeleteCacheDidWriteIndex( |
| 165 const std::string& cache_name, | 165 const std::string& cache_name, |
| 166 const StringVector& original_ordered_cache_names, | 166 const StringVector& original_ordered_cache_names, |
| 167 const BoolAndErrorCallback& callback, | 167 const BoolAndErrorCallback& callback, |
| 168 bool success); | 168 bool success); |
| 169 void DeleteCacheFinalize(std::unique_ptr<CacheStorageCache> doomed_cache); | 169 void DeleteCacheFinalize(CacheStorageCache* doomed_cache); |
| 170 void DeleteCacheDidGetSize(std::unique_ptr<CacheStorageCache> cache, | 170 void DeleteCacheDidGetSize(CacheStorageCache* doomed_cache, |
| 171 int64_t cache_size); | 171 int64_t cache_size); |
| 172 void DeleteCacheDidCleanUp(bool success); | 172 void DeleteCacheDidCleanUp(bool success); |
| 173 | 173 |
| 174 // The EnumerateCache callbacks are below. | 174 // The EnumerateCache callbacks are below. |
| 175 void EnumerateCachesImpl(const StringsCallback& callback); | 175 void EnumerateCachesImpl(const StringsCallback& callback); |
| 176 | 176 |
| 177 // The MatchCache callbacks are below. | 177 // The MatchCache callbacks are below. |
| 178 void MatchCacheImpl(const std::string& cache_name, | 178 void MatchCacheImpl(const std::string& cache_name, |
| 179 std::unique_ptr<ServiceWorkerFetchRequest> request, | 179 std::unique_ptr<ServiceWorkerFetchRequest> request, |
| 180 const CacheStorageCacheQueryParams& match_params, | 180 const CacheStorageCacheQueryParams& match_params, |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 GURL origin_; | 244 GURL origin_; |
| 245 | 245 |
| 246 base::WeakPtrFactory<CacheStorage> weak_factory_; | 246 base::WeakPtrFactory<CacheStorage> weak_factory_; |
| 247 | 247 |
| 248 DISALLOW_COPY_AND_ASSIGN(CacheStorage); | 248 DISALLOW_COPY_AND_ASSIGN(CacheStorage); |
| 249 }; | 249 }; |
| 250 | 250 |
| 251 } // namespace content | 251 } // namespace content |
| 252 | 252 |
| 253 #endif // CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_H_ | 253 #endif // CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_H_ |
| OLD | NEW |