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

Unified Diff: content/browser/service_worker/service_worker_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
Index: content/browser/service_worker/service_worker_disk_cache.h
diff --git a/content/browser/service_worker/service_worker_disk_cache.h b/content/browser/service_worker/service_worker_disk_cache.h
index 7b9b4e441933f076c1f395e5bf4812dddcfbf0fd..19cb531fd2b0d469d6cfc4f7aeb8b3197b0c30ee 100644
--- a/content/browser/service_worker/service_worker_disk_cache.h
+++ b/content/browser/service_worker/service_worker_disk_cache.h
@@ -18,12 +18,22 @@ namespace content {
class CONTENT_EXPORT ServiceWorkerDiskCache
: public AppCacheDiskCache {
+ public:
+ static scoped_ptr<ServiceWorkerDiskCache> CreateWithBlockFileBackend();
+ static scoped_ptr<ServiceWorkerDiskCache> CreateWithSimpleBackend();
+
+ private:
+ friend class ServiceWorkerDiskCacheMigrator;
+ friend class ServiceWorkerDiskCacheMigratorTest;
+ explicit ServiceWorkerDiskCache(bool use_simple_cache);
};
class CONTENT_EXPORT ServiceWorkerResponseReader
: public AppCacheResponseReader {
protected:
// Should only be constructed by the storage class.
+ friend class ServiceWorkerDiskCacheMigrator;
+ friend class ServiceWorkerDiskCacheMigratorTest;
friend class ServiceWorkerStorage;
ServiceWorkerResponseReader(
int64 response_id,
@@ -34,6 +44,8 @@ class CONTENT_EXPORT ServiceWorkerResponseWriter
: public AppCacheResponseWriter {
protected:
// Should only be constructed by the storage class.
+ friend class ServiceWorkerDiskCacheMigrator;
+ friend class ServiceWorkerDiskCacheMigratorTest;
friend class ServiceWorkerStorage;
ServiceWorkerResponseWriter(
int64 response_id,
@@ -44,6 +56,8 @@ class CONTENT_EXPORT ServiceWorkerResponseMetadataWriter
: public AppCacheResponseMetadataWriter {
protected:
// Should only be constructed by the storage class.
+ friend class ServiceWorkerDiskCacheMigrator;
+ friend class ServiceWorkerDiskCacheMigratorTest;
friend class ServiceWorkerStorage;
ServiceWorkerResponseMetadataWriter(int64 response_id,
ServiceWorkerDiskCache* disk_cache);
« no previous file with comments | « content/browser/appcache/appcache_disk_cache.cc ('k') | content/browser/service_worker/service_worker_disk_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698