| 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 void NotifyUninstallingRegistration(ServiceWorkerRegistration* registration); | 233 void NotifyUninstallingRegistration(ServiceWorkerRegistration* registration); |
| 234 void NotifyDoneUninstallingRegistration( | 234 void NotifyDoneUninstallingRegistration( |
| 235 ServiceWorkerRegistration* registration); | 235 ServiceWorkerRegistration* registration); |
| 236 | 236 |
| 237 void Disable(); | 237 void Disable(); |
| 238 | 238 |
| 239 // |resources| must already be on the purgeable list. | 239 // |resources| must already be on the purgeable list. |
| 240 void PurgeResources(const ResourceList& resources); | 240 void PurgeResources(const ResourceList& resources); |
| 241 | 241 |
| 242 private: | 242 private: |
| 243 friend class ForeignFetchRequestHandlerTest; |
| 243 friend class ServiceWorkerDispatcherHostTest; | 244 friend class ServiceWorkerDispatcherHostTest; |
| 244 friend class ServiceWorkerHandleTest; | 245 friend class ServiceWorkerHandleTest; |
| 245 friend class ServiceWorkerStorageTest; | 246 friend class ServiceWorkerStorageTest; |
| 246 friend class ServiceWorkerStorageOriginTrialsTest; | 247 friend class ServiceWorkerStorageOriginTrialsTest; |
| 247 friend class ServiceWorkerRegistrationTest; | 248 friend class ServiceWorkerRegistrationTest; |
| 248 friend class ServiceWorkerResourceStorageTest; | 249 friend class ServiceWorkerResourceStorageTest; |
| 249 friend class ServiceWorkerControlleeRequestHandlerTest; | 250 friend class ServiceWorkerControlleeRequestHandlerTest; |
| 250 friend class ServiceWorkerContextRequestHandlerTest; | 251 friend class ServiceWorkerContextRequestHandlerTest; |
| 251 friend class ServiceWorkerReadFromCacheJobTest; | 252 friend class ServiceWorkerReadFromCacheJobTest; |
| 252 friend class ServiceWorkerRequestHandlerTest; | 253 friend class ServiceWorkerRequestHandlerTest; |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 std::set<int64_t> pending_deletions_; | 561 std::set<int64_t> pending_deletions_; |
| 561 | 562 |
| 562 base::WeakPtrFactory<ServiceWorkerStorage> weak_factory_; | 563 base::WeakPtrFactory<ServiceWorkerStorage> weak_factory_; |
| 563 | 564 |
| 564 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStorage); | 565 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStorage); |
| 565 }; | 566 }; |
| 566 | 567 |
| 567 } // namespace content | 568 } // namespace content |
| 568 | 569 |
| 569 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ | 570 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ |
| OLD | NEW |