| 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 LinkHeaderServiceWorkerTest; |
| 265 friend class ServiceWorkerProviderHostTestP; | 266 friend class ServiceWorkerProviderHostTestP; |
| 266 friend class ServiceWorkerWriteToCacheJobTest; | 267 friend class ServiceWorkerWriteToCacheJobTest; |
| 267 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, Update_SameScript); | 268 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, Update_SameScript); |
| 268 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, | 269 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, |
| 269 Update_SameSizeScript); | 270 Update_SameSizeScript); |
| 270 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, | 271 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, |
| 271 Update_TruncatedScript); | 272 Update_TruncatedScript); |
| 272 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, | 273 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, |
| 273 Update_ElongatedScript); | 274 Update_ElongatedScript); |
| 274 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, | 275 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 bool allow_association_; | 374 bool allow_association_; |
| 374 | 375 |
| 375 std::vector<base::Closure> queued_events_; | 376 std::vector<base::Closure> queued_events_; |
| 376 | 377 |
| 377 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); | 378 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); |
| 378 }; | 379 }; |
| 379 | 380 |
| 380 } // namespace content | 381 } // namespace content |
| 381 | 382 |
| 382 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ | 383 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ |
| OLD | NEW |