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

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

Issue 1155063002: ServiceWorker: Introduce ServiceWorkerDiskCacheMigrator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add DCHECKs Created 5 years, 7 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/appcache/appcache_disk_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/appcache/appcache_disk_cache.h
diff --git a/content/browser/appcache/appcache_disk_cache.h b/content/browser/appcache/appcache_disk_cache.h
index d4a7723423f1a47aa895a5c217208e06f59f73c3..6107f5b6b26f767d2a775ce8b1aa1a5d679ce888 100644
--- a/content/browser/appcache/appcache_disk_cache.h
+++ b/content/browser/appcache/appcache_disk_cache.h
@@ -52,6 +52,10 @@ class CONTENT_EXPORT AppCacheDiskCache
const net::CompletionCallback& callback) override;
int DoomEntry(int64 key, const net::CompletionCallback& callback) override;
+ protected:
+ explicit AppCacheDiskCache(bool use_simple_cache);
+ disk_cache::Backend* disk_cache() { return disk_cache_.get(); }
+
private:
class CreateBackendCallbackShim;
class EntryImpl;
@@ -88,7 +92,6 @@ class CONTENT_EXPORT AppCacheDiskCache
bool is_initializing() const {
return create_backend_callback_.get() != NULL;
}
- disk_cache::Backend* disk_cache() { return disk_cache_.get(); }
int Init(net::CacheType cache_type,
const base::FilePath& directory,
int cache_size,
@@ -99,6 +102,7 @@ class CONTENT_EXPORT AppCacheDiskCache
void AddOpenEntry(EntryImpl* entry) { open_entries_.insert(entry); }
void RemoveOpenEntry(EntryImpl* entry) { open_entries_.erase(entry); }
+ bool use_simple_cache_;
bool is_disabled_;
net::CompletionCallback init_callback_;
scoped_refptr<CreateBackendCallbackShim> create_backend_callback_;
« no previous file with comments | « no previous file | content/browser/appcache/appcache_disk_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698