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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 friend class ServiceWorkerWriteToCacheJobTest; | 266 friend class ServiceWorkerWriteToCacheJobTest; |
267 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, Update_SameScript); | 267 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, Update_SameScript); |
268 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, | 268 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, |
269 Update_SameSizeScript); | 269 Update_SameSizeScript); |
270 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, | 270 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, |
271 Update_TruncatedScript); | 271 Update_TruncatedScript); |
272 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, | 272 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, |
273 Update_ElongatedScript); | 273 Update_ElongatedScript); |
274 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, | 274 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, |
275 Update_EmptyScript); | 275 Update_EmptyScript); |
276 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDispatcherHostTest, | 276 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDispatcherHostTestP, |
277 DispatchExtendableMessageEvent); | 277 DispatchExtendableMessageEvent); |
278 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDispatcherHostTest, | 278 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDispatcherHostTestP, |
279 DispatchExtendableMessageEvent_Fail); | 279 DispatchExtendableMessageEvent_Fail); |
280 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTest, | 280 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTestP, |
281 UpdateBefore24Hours); | 281 UpdateBefore24Hours); |
282 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTest, | 282 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTestP, |
283 UpdateAfter24Hours); | 283 UpdateAfter24Hours); |
284 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTest, | 284 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTestP, |
285 UpdateForceBypassCache); | 285 UpdateForceBypassCache); |
286 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTest, | 286 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTestP, |
287 ServiceWorkerDataRequestAnnotation); | 287 ServiceWorkerDataRequestAnnotation); |
288 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerProviderHostTestP, ContextSecurity); | 288 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerProviderHostTestP, ContextSecurity); |
289 | 289 |
290 struct OneShotGetReadyCallback { | 290 struct OneShotGetReadyCallback { |
291 GetRegistrationForReadyCallback callback; | 291 GetRegistrationForReadyCallback callback; |
292 bool called; | 292 bool called; |
293 | 293 |
294 explicit OneShotGetReadyCallback( | 294 explicit OneShotGetReadyCallback( |
295 const GetRegistrationForReadyCallback& callback); | 295 const GetRegistrationForReadyCallback& callback); |
296 ~OneShotGetReadyCallback(); | 296 ~OneShotGetReadyCallback(); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 bool allow_association_; | 373 bool allow_association_; |
374 | 374 |
375 std::vector<base::Closure> queued_events_; | 375 std::vector<base::Closure> queued_events_; |
376 | 376 |
377 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); | 377 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); |
378 }; | 378 }; |
379 | 379 |
380 } // namespace content | 380 } // namespace content |
381 | 381 |
382 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ | 382 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ |
OLD | NEW |