| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISK_CACHE_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISK_CACHE_H_ |
| 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISK_CACHE_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISK_CACHE_H_ |
| 7 | 7 |
| 8 #include "content/browser/appcache/appcache_disk_cache.h" | 8 #include "content/browser/appcache/appcache_disk_cache.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 private: | 25 private: |
| 26 friend class ServiceWorkerDiskCacheMigrator; | 26 friend class ServiceWorkerDiskCacheMigrator; |
| 27 friend class ServiceWorkerDiskCacheMigratorTest; | 27 friend class ServiceWorkerDiskCacheMigratorTest; |
| 28 explicit ServiceWorkerDiskCache(bool use_simple_cache); | 28 explicit ServiceWorkerDiskCache(bool use_simple_cache); |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 class CONTENT_EXPORT ServiceWorkerResponseReader | 31 class CONTENT_EXPORT ServiceWorkerResponseReader |
| 32 : public AppCacheResponseReader { | 32 : public AppCacheResponseReader { |
| 33 protected: | 33 protected: |
| 34 // Should only be constructed by the storage class. | 34 // Should only be constructed by the storage class. |
| 35 friend class MockServiceWorkerResponseReader; |
| 35 friend class ServiceWorkerDiskCacheMigrator; | 36 friend class ServiceWorkerDiskCacheMigrator; |
| 36 friend class ServiceWorkerDiskCacheMigratorTest; | 37 friend class ServiceWorkerDiskCacheMigratorTest; |
| 37 friend class ServiceWorkerStorage; | 38 friend class ServiceWorkerStorage; |
| 38 ServiceWorkerResponseReader( | 39 ServiceWorkerResponseReader( |
| 39 int64 response_id, | 40 int64 response_id, |
| 40 ServiceWorkerDiskCache* disk_cache); | 41 ServiceWorkerDiskCache* disk_cache); |
| 41 }; | 42 }; |
| 42 | 43 |
| 43 class CONTENT_EXPORT ServiceWorkerResponseWriter | 44 class CONTENT_EXPORT ServiceWorkerResponseWriter |
| 44 : public AppCacheResponseWriter { | 45 : public AppCacheResponseWriter { |
| 45 protected: | 46 protected: |
| 46 // Should only be constructed by the storage class. | 47 // Should only be constructed by the storage class. |
| 48 friend class MockServiceWorkerResponseWriter; |
| 47 friend class ServiceWorkerDiskCacheMigrator; | 49 friend class ServiceWorkerDiskCacheMigrator; |
| 48 friend class ServiceWorkerDiskCacheMigratorTest; | 50 friend class ServiceWorkerDiskCacheMigratorTest; |
| 49 friend class ServiceWorkerStorage; | 51 friend class ServiceWorkerStorage; |
| 50 ServiceWorkerResponseWriter( | 52 ServiceWorkerResponseWriter( |
| 51 int64 response_id, | 53 int64 response_id, |
| 52 ServiceWorkerDiskCache* disk_cache); | 54 ServiceWorkerDiskCache* disk_cache); |
| 53 }; | 55 }; |
| 54 | 56 |
| 55 class CONTENT_EXPORT ServiceWorkerResponseMetadataWriter | 57 class CONTENT_EXPORT ServiceWorkerResponseMetadataWriter |
| 56 : public AppCacheResponseMetadataWriter { | 58 : public AppCacheResponseMetadataWriter { |
| 57 protected: | 59 protected: |
| 58 // Should only be constructed by the storage class. | 60 // Should only be constructed by the storage class. |
| 59 friend class ServiceWorkerDiskCacheMigrator; | 61 friend class ServiceWorkerDiskCacheMigrator; |
| 60 friend class ServiceWorkerDiskCacheMigratorTest; | 62 friend class ServiceWorkerDiskCacheMigratorTest; |
| 61 friend class ServiceWorkerStorage; | 63 friend class ServiceWorkerStorage; |
| 62 ServiceWorkerResponseMetadataWriter(int64 response_id, | 64 ServiceWorkerResponseMetadataWriter(int64 response_id, |
| 63 ServiceWorkerDiskCache* disk_cache); | 65 ServiceWorkerDiskCache* disk_cache); |
| 64 }; | 66 }; |
| 65 | 67 |
| 66 } // namespace content | 68 } // namespace content |
| 67 | 69 |
| 68 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISK_CACHE_H_ | 70 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISK_CACHE_H_ |
| OLD | NEW |