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

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

Issue 2416713002: Write out CacheStorageCache size to index file. (Closed)
Patch Set: BrowserThread::PostDelayedTask(IO, ...) --> base::ThreadTaskRunnerHandle::Get()->Post* Created 4 years 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_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 <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 void OpenCache(const GURL& origin, 59 void OpenCache(const GURL& origin,
60 const std::string& cache_name, 60 const std::string& cache_name,
61 const CacheStorage::CacheAndErrorCallback& callback); 61 const CacheStorage::CacheAndErrorCallback& callback);
62 void HasCache(const GURL& origin, 62 void HasCache(const GURL& origin,
63 const std::string& cache_name, 63 const std::string& cache_name,
64 const CacheStorage::BoolAndErrorCallback& callback); 64 const CacheStorage::BoolAndErrorCallback& callback);
65 void DeleteCache(const GURL& origin, 65 void DeleteCache(const GURL& origin,
66 const std::string& cache_name, 66 const std::string& cache_name,
67 const CacheStorage::BoolAndErrorCallback& callback); 67 const CacheStorage::BoolAndErrorCallback& callback);
68 void EnumerateCaches(const GURL& origin, 68 void EnumerateCaches(const GURL& origin,
69 const CacheStorage::StringsCallback& callback); 69 const CacheStorage::IndexCallback& callback);
70 void MatchCache(const GURL& origin, 70 void MatchCache(const GURL& origin,
71 const std::string& cache_name, 71 const std::string& cache_name,
72 std::unique_ptr<ServiceWorkerFetchRequest> request, 72 std::unique_ptr<ServiceWorkerFetchRequest> request,
73 const CacheStorageCacheQueryParams& match_params, 73 const CacheStorageCacheQueryParams& match_params,
74 const CacheStorageCache::ResponseCallback& callback); 74 const CacheStorageCache::ResponseCallback& callback);
75 void MatchAllCaches(const GURL& origin, 75 void MatchAllCaches(const GURL& origin,
76 std::unique_ptr<ServiceWorkerFetchRequest> request, 76 std::unique_ptr<ServiceWorkerFetchRequest> request,
77 const CacheStorageCacheQueryParams& match_params, 77 const CacheStorageCacheQueryParams& match_params,
78 const CacheStorageCache::ResponseCallback& callback); 78 const CacheStorageCache::ResponseCallback& callback);
79 79
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; 153 scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
154 base::WeakPtr<storage::BlobStorageContext> blob_context_; 154 base::WeakPtr<storage::BlobStorageContext> blob_context_;
155 155
156 base::WeakPtrFactory<CacheStorageManager> weak_ptr_factory_; 156 base::WeakPtrFactory<CacheStorageManager> weak_ptr_factory_;
157 DISALLOW_COPY_AND_ASSIGN(CacheStorageManager); 157 DISALLOW_COPY_AND_ASSIGN(CacheStorageManager);
158 }; 158 };
159 159
160 } // namespace content 160 } // namespace content
161 161
162 #endif // CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_MANAGER_H_ 162 #endif // CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698