Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Side by Side Diff: content/browser/cache_storage/cache_storage_cache.h

Issue 1694213002: CacheStorage: Add ignoreSearch option to cache.delete(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_CACHE_H_ 5 #ifndef CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_CACHE_H_
6 #define CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_CACHE_H_ 6 #define CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_CACHE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // Asynchronously calculates the current cache size, notifies the quota 212 // Asynchronously calculates the current cache size, notifies the quota
213 // manager of any change from the last report, and sets cache_size_ to the new 213 // manager of any change from the last report, and sets cache_size_ to the new
214 // size. Runs |callback| once complete. 214 // size. Runs |callback| once complete.
215 void UpdateCacheSize(); 215 void UpdateCacheSize();
216 void UpdateCacheSizeGotSize(int current_cache_size); 216 void UpdateCacheSizeGotSize(int current_cache_size);
217 217
218 // Returns ERROR_NOT_FOUND if not found. Otherwise deletes and returns OK. 218 // Returns ERROR_NOT_FOUND if not found. Otherwise deletes and returns OK.
219 void Delete(const CacheStorageBatchOperation& operation, 219 void Delete(const CacheStorageBatchOperation& operation,
220 const ErrorCallback& callback); 220 const ErrorCallback& callback);
221 void DeleteImpl(scoped_ptr<ServiceWorkerFetchRequest> request, 221 void DeleteImpl(scoped_ptr<ServiceWorkerFetchRequest> request,
222 const CacheStorageCacheQueryParams& match_params,
222 const ErrorCallback& callback); 223 const ErrorCallback& callback);
224 void DeleteDidOpenAllEntries(
225 const GURL& request_url_without_query,
226 const ErrorCallback& callback,
227 scoped_ptr<OpenAllEntriesContext> entries_context,
228 CacheStorageError error);
223 void DeleteDidOpenEntry(const GURL& origin, 229 void DeleteDidOpenEntry(const GURL& origin,
224 scoped_ptr<ServiceWorkerFetchRequest> request, 230 scoped_ptr<ServiceWorkerFetchRequest> request,
225 const CacheStorageCache::ErrorCallback& callback, 231 const CacheStorageCache::ErrorCallback& callback,
226 scoped_ptr<disk_cache::Entry*> entryptr, 232 scoped_ptr<disk_cache::Entry*> entryptr,
227 int rv); 233 int rv);
228 234
229 // Keys callbacks. 235 // Keys callbacks.
230 void KeysImpl(const RequestsCallback& callback); 236 void KeysImpl(const RequestsCallback& callback);
231 void KeysDidOpenAllEntries(const RequestsCallback& callback, 237 void KeysDidOpenAllEntries(const RequestsCallback& callback,
232 scoped_ptr<OpenAllEntriesContext> entries_context, 238 scoped_ptr<OpenAllEntriesContext> entries_context,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 bool memory_only_; 301 bool memory_only_;
296 302
297 base::WeakPtrFactory<CacheStorageCache> weak_ptr_factory_; 303 base::WeakPtrFactory<CacheStorageCache> weak_ptr_factory_;
298 304
299 DISALLOW_COPY_AND_ASSIGN(CacheStorageCache); 305 DISALLOW_COPY_AND_ASSIGN(CacheStorageCache);
300 }; 306 };
301 307
302 } // namespace content 308 } // namespace content
303 309
304 #endif // CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_CACHE_H_ 310 #endif // CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_CACHE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698