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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 void NotifyUninstallingRegistration(ServiceWorkerRegistration* registration); | 217 void NotifyUninstallingRegistration(ServiceWorkerRegistration* registration); |
218 void NotifyDoneUninstallingRegistration( | 218 void NotifyDoneUninstallingRegistration( |
219 ServiceWorkerRegistration* registration); | 219 ServiceWorkerRegistration* registration); |
220 | 220 |
221 void Disable(); | 221 void Disable(); |
222 | 222 |
223 // |resources| must already be on the purgeable list. | 223 // |resources| must already be on the purgeable list. |
224 void PurgeResources(const ResourceList& resources); | 224 void PurgeResources(const ResourceList& resources); |
225 | 225 |
226 private: | 226 private: |
| 227 friend class ServiceWorkerDispatcherHostTest; |
227 friend class ServiceWorkerHandleTest; | 228 friend class ServiceWorkerHandleTest; |
228 friend class ServiceWorkerStorageTest; | 229 friend class ServiceWorkerStorageTest; |
229 friend class ServiceWorkerResourceStorageTest; | 230 friend class ServiceWorkerResourceStorageTest; |
230 friend class ServiceWorkerControlleeRequestHandlerTest; | 231 friend class ServiceWorkerControlleeRequestHandlerTest; |
231 friend class ServiceWorkerContextRequestHandlerTest; | 232 friend class ServiceWorkerContextRequestHandlerTest; |
232 friend class ServiceWorkerReadFromCacheJobTest; | 233 friend class ServiceWorkerReadFromCacheJobTest; |
233 friend class ServiceWorkerRequestHandlerTest; | 234 friend class ServiceWorkerRequestHandlerTest; |
234 friend class ServiceWorkerURLRequestJobTest; | 235 friend class ServiceWorkerURLRequestJobTest; |
235 friend class ServiceWorkerVersionBrowserTest; | 236 friend class ServiceWorkerVersionBrowserTest; |
236 friend class ServiceWorkerVersionTest; | 237 friend class ServiceWorkerVersionTest; |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 std::set<int64_t> pending_deletions_; | 543 std::set<int64_t> pending_deletions_; |
543 | 544 |
544 base::WeakPtrFactory<ServiceWorkerStorage> weak_factory_; | 545 base::WeakPtrFactory<ServiceWorkerStorage> weak_factory_; |
545 | 546 |
546 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStorage); | 547 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStorage); |
547 }; | 548 }; |
548 | 549 |
549 } // namespace content | 550 } // namespace content |
550 | 551 |
551 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ | 552 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ |
OLD | NEW |