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

Unified Diff: webkit/browser/appcache/appcache_disk_cache.h

Issue 137493003: Appcache::OnCorruptionDetected handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
Index: webkit/browser/appcache/appcache_disk_cache.h
diff --git a/webkit/browser/appcache/appcache_disk_cache.h b/webkit/browser/appcache/appcache_disk_cache.h
index bb1495cf597167344316895013db565e2f9331a0..d9f27d0fb09fce178f9f49cb95a062cdeb0b7590 100644
--- a/webkit/browser/appcache/appcache_disk_cache.h
+++ b/webkit/browser/appcache/appcache_disk_cache.h
@@ -75,6 +75,7 @@ class WEBKIT_STORAGE_BROWSER_EXPORT AppCacheDiskCache
class ActiveCall;
typedef std::set<ActiveCall*> ActiveCalls;
+ typedef std::set<EntryImpl*> OpenEntries;
bool is_initializing() const {
return create_backend_callback_.get() != NULL;
@@ -86,12 +87,15 @@ class WEBKIT_STORAGE_BROWSER_EXPORT AppCacheDiskCache
void OnCreateBackendComplete(int rv);
void AddActiveCall(ActiveCall* call) { active_calls_.insert(call); }
void RemoveActiveCall(ActiveCall* call) { active_calls_.erase(call); }
+ void AddOpenEntry(EntryImpl* entry) { open_entries_.insert(entry); }
+ void RemoveOpenEntry(EntryImpl* entry) { open_entries_.erase(entry); }
bool is_disabled_;
net::CompletionCallback init_callback_;
scoped_refptr<CreateBackendCallbackShim> create_backend_callback_;
PendingCalls pending_calls_;
ActiveCalls active_calls_;
+ OpenEntries open_entries_;
scoped_ptr<disk_cache::Backend> disk_cache_;
};
« no previous file with comments | « webkit/browser/appcache/appcache_database_unittest.cc ('k') | webkit/browser/appcache/appcache_disk_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698