| 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 // Called when our controller has been terminated and doomed due to an | 292 // Called when our controller has been terminated and doomed due to an |
| 293 // exceptional condition like it could no longer be read from the script | 293 // exceptional condition like it could no longer be read from the script |
| 294 // cache. | 294 // cache. |
| 295 void NotifyControllerLost(); | 295 void NotifyControllerLost(); |
| 296 | 296 |
| 297 private: | 297 private: |
| 298 friend class ForeignFetchRequestHandlerTest; | 298 friend class ForeignFetchRequestHandlerTest; |
| 299 friend class LinkHeaderServiceWorkerTest; | 299 friend class LinkHeaderServiceWorkerTest; |
| 300 friend class ServiceWorkerProviderHostTestP; | 300 friend class ServiceWorkerProviderHostTestP; |
| 301 friend class ServiceWorkerWriteToCacheJobTest; | 301 friend class ServiceWorkerWriteToCacheJobTest; |
| 302 friend class ServiceWorkerContextRequestHandlerTest; |
| 302 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, Update_SameScript); | 303 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, Update_SameScript); |
| 303 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, | 304 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, |
| 304 Update_SameSizeScript); | 305 Update_SameSizeScript); |
| 305 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, | 306 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, |
| 306 Update_TruncatedScript); | 307 Update_TruncatedScript); |
| 307 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, | 308 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, |
| 308 Update_ElongatedScript); | 309 Update_ElongatedScript); |
| 309 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, | 310 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, |
| 310 Update_EmptyScript); | 311 Update_EmptyScript); |
| 311 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDispatcherHostTestP, | 312 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDispatcherHostTestP, |
| 312 DispatchExtendableMessageEvent); | 313 DispatchExtendableMessageEvent); |
| 313 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDispatcherHostTestP, | 314 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDispatcherHostTestP, |
| 314 DispatchExtendableMessageEvent_Fail); | 315 DispatchExtendableMessageEvent_Fail); |
| 315 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTestP, | |
| 316 UpdateBefore24Hours); | |
| 317 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTestP, | |
| 318 UpdateAfter24Hours); | |
| 319 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTestP, | |
| 320 UpdateForceBypassCache); | |
| 321 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTestP, | |
| 322 ServiceWorkerDataRequestAnnotation); | |
| 323 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTestP, | |
| 324 SkipServiceWorkerForServiceWorkerRequest); | |
| 325 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerProviderHostTestP, ContextSecurity); | 316 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerProviderHostTestP, ContextSecurity); |
| 326 | 317 |
| 327 struct OneShotGetReadyCallback { | 318 struct OneShotGetReadyCallback { |
| 328 GetRegistrationForReadyCallback callback; | 319 GetRegistrationForReadyCallback callback; |
| 329 bool called; | 320 bool called; |
| 330 | 321 |
| 331 explicit OneShotGetReadyCallback( | 322 explicit OneShotGetReadyCallback( |
| 332 const GetRegistrationForReadyCallback& callback); | 323 const GetRegistrationForReadyCallback& callback); |
| 333 ~OneShotGetReadyCallback(); | 324 ~OneShotGetReadyCallback(); |
| 334 }; | 325 }; |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 bool allow_association_; | 406 bool allow_association_; |
| 416 | 407 |
| 417 std::vector<base::Closure> queued_events_; | 408 std::vector<base::Closure> queued_events_; |
| 418 | 409 |
| 419 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); | 410 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); |
| 420 }; | 411 }; |
| 421 | 412 |
| 422 } // namespace content | 413 } // namespace content |
| 423 | 414 |
| 424 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ | 415 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ |
| OLD | NEW |