| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_STORAGE_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ |
| 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 bool IsDisabled() const; | 161 bool IsDisabled() const; |
| 162 | 162 |
| 163 // |resources| must already be on the purgeable list. | 163 // |resources| must already be on the purgeable list. |
| 164 void PurgeResources(const ResourceList& resources); | 164 void PurgeResources(const ResourceList& resources); |
| 165 | 165 |
| 166 private: | 166 private: |
| 167 friend class ServiceWorkerResourceStorageTest; | 167 friend class ServiceWorkerResourceStorageTest; |
| 168 friend class ServiceWorkerControlleeRequestHandlerTest; | 168 friend class ServiceWorkerControlleeRequestHandlerTest; |
| 169 friend class ServiceWorkerContextRequestHandlerTest; | 169 friend class ServiceWorkerContextRequestHandlerTest; |
| 170 friend class ServiceWorkerRequestHandlerTest; | 170 friend class ServiceWorkerRequestHandlerTest; |
| 171 friend class ServiceWorkerWriteToCacheJobTest; |
| 171 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest, | 172 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest, |
| 172 DeleteRegistration_NoLiveVersion); | 173 DeleteRegistration_NoLiveVersion); |
| 173 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest, | 174 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest, |
| 174 DeleteRegistration_WaitingVersion); | 175 DeleteRegistration_WaitingVersion); |
| 175 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest, | 176 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest, |
| 176 DeleteRegistration_ActiveVersion); | 177 DeleteRegistration_ActiveVersion); |
| 177 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest, | 178 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest, |
| 178 UpdateRegistration); | 179 UpdateRegistration); |
| 179 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageDiskTest, | 180 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageDiskTest, |
| 180 CleanupOnRestart); | 181 CleanupOnRestart); |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 std::set<int64> pending_deletions_; | 400 std::set<int64> pending_deletions_; |
| 400 | 401 |
| 401 base::WeakPtrFactory<ServiceWorkerStorage> weak_factory_; | 402 base::WeakPtrFactory<ServiceWorkerStorage> weak_factory_; |
| 402 | 403 |
| 403 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStorage); | 404 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStorage); |
| 404 }; | 405 }; |
| 405 | 406 |
| 406 } // namespace content | 407 } // namespace content |
| 407 | 408 |
| 408 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ | 409 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ |
| OLD | NEW |