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_PROVIDER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ |
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 // An optimized implementation of [[Match Service Worker Registration]] | 255 // An optimized implementation of [[Match Service Worker Registration]] |
256 // for current document. | 256 // for current document. |
257 ServiceWorkerRegistration* MatchRegistration() const; | 257 ServiceWorkerRegistration* MatchRegistration() const; |
258 | 258 |
259 // Called when our controller has been terminated and doomed due to an | 259 // Called when our controller has been terminated and doomed due to an |
260 // exceptional condition like it could no longer be read from the script | 260 // exceptional condition like it could no longer be read from the script |
261 // cache. | 261 // cache. |
262 void NotifyControllerLost(); | 262 void NotifyControllerLost(); |
263 | 263 |
264 private: | 264 private: |
| 265 friend class ForeignFetchRequestHandlerTest; |
265 friend class LinkHeaderServiceWorkerTest; | 266 friend class LinkHeaderServiceWorkerTest; |
266 friend class ServiceWorkerProviderHostTestP; | 267 friend class ServiceWorkerProviderHostTestP; |
267 friend class ServiceWorkerWriteToCacheJobTest; | 268 friend class ServiceWorkerWriteToCacheJobTest; |
268 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, Update_SameScript); | 269 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, Update_SameScript); |
269 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, | 270 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, |
270 Update_SameSizeScript); | 271 Update_SameSizeScript); |
271 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, | 272 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, |
272 Update_TruncatedScript); | 273 Update_TruncatedScript); |
273 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, | 274 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, |
274 Update_ElongatedScript); | 275 Update_ElongatedScript); |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 bool allow_association_; | 375 bool allow_association_; |
375 | 376 |
376 std::vector<base::Closure> queued_events_; | 377 std::vector<base::Closure> queued_events_; |
377 | 378 |
378 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); | 379 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); |
379 }; | 380 }; |
380 | 381 |
381 } // namespace content | 382 } // namespace content |
382 | 383 |
383 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ | 384 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ |
OLD | NEW |