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

Unified Diff: content/browser/service_worker/service_worker_cache.h

Issue 674873002: [ServiceWorkerCache] Call QuotaManager::NotifyStorageModified from Cache. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix refptr check Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/service_worker_cache.h
diff --git a/content/browser/service_worker/service_worker_cache.h b/content/browser/service_worker/service_worker_cache.h
index a88845e7a3216f431730b594b6598341b38f1a81..65966090ed52ff3ea04054494ed698d72d2961cc 100644
--- a/content/browser/service_worker/service_worker_cache.h
+++ b/content/browser/service_worker/service_worker_cache.h
@@ -22,6 +22,7 @@ namespace storage {
class BlobData;
class BlobDataHandle;
class BlobStorageContext;
+class QuotaManagerProxy;
}
namespace content {
@@ -54,11 +55,15 @@ class CONTENT_EXPORT ServiceWorkerCache
RequestsCallback;
static scoped_refptr<ServiceWorkerCache> CreateMemoryCache(
+ const GURL& origin,
net::URLRequestContext* request_context,
+ const scoped_refptr<storage::QuotaManagerProxy>& quota_manager_proxy,
base::WeakPtr<storage::BlobStorageContext> blob_context);
static scoped_refptr<ServiceWorkerCache> CreatePersistentCache(
+ const GURL& origin,
const base::FilePath& path,
net::URLRequestContext* request_context,
+ const scoped_refptr<storage::QuotaManagerProxy>& quota_manager_proxy,
base::WeakPtr<storage::BlobStorageContext> blob_context);
// Returns ErrorTypeNotFound if not found. The callback will always be called.
@@ -97,9 +102,12 @@ class CONTENT_EXPORT ServiceWorkerCache
struct KeysContext;
typedef std::vector<disk_cache::Entry*> Entries;
- ServiceWorkerCache(const base::FilePath& path,
- net::URLRequestContext* request_context,
- base::WeakPtr<storage::BlobStorageContext> blob_context);
+ ServiceWorkerCache(
+ const GURL& origin,
+ const base::FilePath& path,
+ net::URLRequestContext* request_context,
+ const scoped_refptr<storage::QuotaManagerProxy>& quota_manager_proxy,
+ base::WeakPtr<storage::BlobStorageContext> blob_context);
// Operations in progress will complete after the cache is deleted but pending
// operations (those operations waiting for init to finish) won't.
@@ -130,8 +138,10 @@ class CONTENT_EXPORT ServiceWorkerCache
// The backend can be deleted via the Close function at any time so always
// check for its existence before use.
scoped_ptr<disk_cache::Backend> backend_;
+ GURL origin_;
base::FilePath path_;
net::URLRequestContext* request_context_;
+ scoped_refptr<storage::QuotaManagerProxy> quota_manager_proxy_;
base::WeakPtr<storage::BlobStorageContext> blob_storage_context_;
bool initialized_;
std::vector<base::Closure> init_callbacks_;
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698