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. |