| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <deque> | 10 #include <deque> |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 | 224 |
| 225 void Disable(); | 225 void Disable(); |
| 226 | 226 |
| 227 // |resources| must already be on the purgeable list. | 227 // |resources| must already be on the purgeable list. |
| 228 void PurgeResources(const ResourceList& resources); | 228 void PurgeResources(const ResourceList& resources); |
| 229 | 229 |
| 230 private: | 230 private: |
| 231 friend class ServiceWorkerDispatcherHostTest; | 231 friend class ServiceWorkerDispatcherHostTest; |
| 232 friend class ServiceWorkerHandleTest; | 232 friend class ServiceWorkerHandleTest; |
| 233 friend class ServiceWorkerStorageTest; | 233 friend class ServiceWorkerStorageTest; |
| 234 friend class ServiceWorkerRegistrationTest; |
| 234 friend class ServiceWorkerResourceStorageTest; | 235 friend class ServiceWorkerResourceStorageTest; |
| 235 friend class ServiceWorkerControlleeRequestHandlerTest; | 236 friend class ServiceWorkerControlleeRequestHandlerTest; |
| 236 friend class ServiceWorkerContextRequestHandlerTest; | 237 friend class ServiceWorkerContextRequestHandlerTest; |
| 237 friend class ServiceWorkerReadFromCacheJobTest; | 238 friend class ServiceWorkerReadFromCacheJobTest; |
| 238 friend class ServiceWorkerRequestHandlerTest; | 239 friend class ServiceWorkerRequestHandlerTest; |
| 239 friend class ServiceWorkerURLRequestJobTest; | 240 friend class ServiceWorkerURLRequestJobTest; |
| 240 friend class ServiceWorkerVersionBrowserTest; | 241 friend class ServiceWorkerVersionBrowserTest; |
| 241 friend class ServiceWorkerVersionTest; | 242 friend class ServiceWorkerVersionTest; |
| 242 friend class ServiceWorkerWriteToCacheJobTest; | 243 friend class ServiceWorkerWriteToCacheJobTest; |
| 243 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDispatcherHostTest, | 244 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDispatcherHostTest, |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 std::set<int64_t> pending_deletions_; | 547 std::set<int64_t> pending_deletions_; |
| 547 | 548 |
| 548 base::WeakPtrFactory<ServiceWorkerStorage> weak_factory_; | 549 base::WeakPtrFactory<ServiceWorkerStorage> weak_factory_; |
| 549 | 550 |
| 550 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStorage); | 551 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStorage); |
| 551 }; | 552 }; |
| 552 | 553 |
| 553 } // namespace content | 554 } // namespace content |
| 554 | 555 |
| 555 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ | 556 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ |
| OLD | NEW |