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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 void Disable(); | 157 void Disable(); |
158 bool IsDisabled() const; | 158 bool IsDisabled() const; |
159 | 159 |
160 // |resources| must already be on the purgeable list. | 160 // |resources| must already be on the purgeable list. |
161 void PurgeResources(const ResourceList& resources); | 161 void PurgeResources(const ResourceList& resources); |
162 | 162 |
163 private: | 163 private: |
164 friend class ServiceWorkerResourceStorageTest; | 164 friend class ServiceWorkerResourceStorageTest; |
165 friend class ServiceWorkerControlleeRequestHandlerTest; | 165 friend class ServiceWorkerControlleeRequestHandlerTest; |
166 friend class ServiceWorkerContextRequestHandlerTest; | 166 friend class ServiceWorkerContextRequestHandlerTest; |
| 167 friend class ServiceWorkerRequestHandlerTest; |
167 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest, | 168 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest, |
168 DeleteRegistration_NoLiveVersion); | 169 DeleteRegistration_NoLiveVersion); |
169 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest, | 170 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest, |
170 DeleteRegistration_WaitingVersion); | 171 DeleteRegistration_WaitingVersion); |
171 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest, | 172 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest, |
172 DeleteRegistration_ActiveVersion); | 173 DeleteRegistration_ActiveVersion); |
173 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest, | 174 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageTest, |
174 UpdateRegistration); | 175 UpdateRegistration); |
175 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageDiskTest, | 176 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerResourceStorageDiskTest, |
176 CleanupOnRestart); | 177 CleanupOnRestart); |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 std::set<int64> pending_deletions_; | 386 std::set<int64> pending_deletions_; |
386 | 387 |
387 base::WeakPtrFactory<ServiceWorkerStorage> weak_factory_; | 388 base::WeakPtrFactory<ServiceWorkerStorage> weak_factory_; |
388 | 389 |
389 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStorage); | 390 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStorage); |
390 }; | 391 }; |
391 | 392 |
392 } // namespace content | 393 } // namespace content |
393 | 394 |
394 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ | 395 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ |
OLD | NEW |