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

Unified Diff: content/browser/appcache/appcache_service_impl.h

Issue 2501343003: PlzNavigate: AppCache support. (Closed)
Patch Set: Add DCHECKs for PlzNavigate and fix a double Release problem which caused one unit_test to fail wit… Created 4 years, 1 month 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
Index: content/browser/appcache/appcache_service_impl.h
diff --git a/content/browser/appcache/appcache_service_impl.h b/content/browser/appcache/appcache_service_impl.h
index ea78f6910e9c79c071320a9e4c82c635e33ae039..06ad1428a46ebe5d57a4f80df19a668b794231e4 100644
--- a/content/browser/appcache/appcache_service_impl.h
+++ b/content/browser/appcache/appcache_service_impl.h
@@ -172,6 +172,13 @@ class CONTENT_EXPORT AppCacheServiceImpl
return (it != backends_.end()) ? it->second : NULL;
}
+ void RegisterBackendForFrame(AppCacheBackendImpl* backend_impl);
+ void UnregisterBackendForFrame(AppCacheBackendImpl* backend_impl);
+ AppCacheBackendImpl* GetBackendForFrame(int id) const {
+ BackendMap::const_iterator it = backends_for_frame_.find(id);
+ return (it != backends_for_frame_.end()) ? it->second : NULL;
+ }
+
AppCacheStorage* storage() const { return storage_.get(); }
base::WeakPtr<AppCacheServiceImpl> AsWeakPtr() {
@@ -211,6 +218,8 @@ class CONTENT_EXPORT AppCacheServiceImpl
scoped_refptr<storage::QuotaManagerProxy> quota_manager_proxy_;
PendingAsyncHelpers pending_helpers_;
BackendMap backends_; // One 'backend' per child process.
+ BackendMap backends_for_frame_; // One 'backend' per frame.
+
// Context for use during cache updates.
net::URLRequestContext* request_context_;
// If true, nothing (not even session-only data) should be deleted on exit.

Powered by Google App Engine
This is Rietveld 408576698