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

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: Remove unnecessary check 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
« no previous file with comments | « no previous file | content/browser/cache_storage/cache_storage_cache.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 // Asynchronously calculates the current cache size, notifies the quota 216 // Asynchronously calculates the current cache size, notifies the quota
217 // manager of any change from the last report, and sets cache_size_ to the new 217 // manager of any change from the last report, and sets cache_size_ to the new
218 // size. Runs |callback| once complete. 218 // size. Runs |callback| once complete.
219 void UpdateCacheSize(); 219 void UpdateCacheSize();
220 void UpdateCacheSizeGotSize(int current_cache_size); 220 void UpdateCacheSizeGotSize(int current_cache_size);
221 221
222 // Returns ERROR_NOT_FOUND if not found. Otherwise deletes and returns OK. 222 // Returns ERROR_NOT_FOUND if not found. Otherwise deletes and returns OK.
223 void Delete(const CacheStorageBatchOperation& operation, 223 void Delete(const CacheStorageBatchOperation& operation,
224 const ErrorCallback& callback); 224 const ErrorCallback& callback);
225 void DeleteImpl(scoped_ptr<ServiceWorkerFetchRequest> request, 225 void DeleteImpl(scoped_ptr<ServiceWorkerFetchRequest> request,
226 const CacheStorageCacheQueryParams& match_params,
226 const ErrorCallback& callback); 227 const ErrorCallback& callback);
228 void DeleteDidOpenAllEntries(
229 scoped_ptr<ServiceWorkerFetchRequest> request,
230 const ErrorCallback& callback,
231 scoped_ptr<OpenAllEntriesContext> entries_context,
232 CacheStorageError error);
227 void DeleteDidOpenEntry(const GURL& origin, 233 void DeleteDidOpenEntry(const GURL& origin,
228 scoped_ptr<ServiceWorkerFetchRequest> request, 234 scoped_ptr<ServiceWorkerFetchRequest> request,
229 const CacheStorageCache::ErrorCallback& callback, 235 const CacheStorageCache::ErrorCallback& callback,
230 scoped_ptr<disk_cache::Entry*> entryptr, 236 scoped_ptr<disk_cache::Entry*> entryptr,
231 int rv); 237 int rv);
232 238
233 // Keys callbacks. 239 // Keys callbacks.
234 void KeysImpl(const RequestsCallback& callback); 240 void KeysImpl(const RequestsCallback& callback);
235 void KeysDidOpenAllEntries(const RequestsCallback& callback, 241 void KeysDidOpenAllEntries(const RequestsCallback& callback,
236 scoped_ptr<OpenAllEntriesContext> entries_context, 242 scoped_ptr<OpenAllEntriesContext> entries_context,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 bool memory_only_; 308 bool memory_only_;
303 309
304 base::WeakPtrFactory<CacheStorageCache> weak_ptr_factory_; 310 base::WeakPtrFactory<CacheStorageCache> weak_ptr_factory_;
305 311
306 DISALLOW_COPY_AND_ASSIGN(CacheStorageCache); 312 DISALLOW_COPY_AND_ASSIGN(CacheStorageCache);
307 }; 313 };
308 314
309 } // namespace content 315 } // namespace content
310 316
311 #endif // CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_CACHE_H_ 317 #endif // CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_CACHE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/cache_storage/cache_storage_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698