Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Side by Side Diff: content/browser/service_worker/service_worker_provider_host.h

Issue 2627543002: ServiceWorker: Returns true for IsMojoForServiceWorkerEnabled (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 ServiceWorkerRegistration* MatchRegistration() const; 290 ServiceWorkerRegistration* MatchRegistration() const;
291 291
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 ServiceWorkerProviderHostTest;
301 friend class ServiceWorkerWriteToCacheJobTest; 301 friend class ServiceWorkerWriteToCacheJobTest;
302 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, Update_SameScript); 302 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, Update_SameScript);
303 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, 303 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest,
304 Update_SameSizeScript); 304 Update_SameSizeScript);
305 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, 305 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest,
306 Update_TruncatedScript); 306 Update_TruncatedScript);
307 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, 307 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest,
308 Update_ElongatedScript); 308 Update_ElongatedScript);
309 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, 309 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest,
310 Update_EmptyScript); 310 Update_EmptyScript);
311 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDispatcherHostTestP, 311 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDispatcherHostTest,
312 DispatchExtendableMessageEvent); 312 DispatchExtendableMessageEvent);
313 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDispatcherHostTestP, 313 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDispatcherHostTest,
314 DispatchExtendableMessageEvent_Fail); 314 DispatchExtendableMessageEvent_Fail);
315 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTestP, 315 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTest,
316 UpdateBefore24Hours); 316 UpdateBefore24Hours);
317 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTestP, 317 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTest,
318 UpdateAfter24Hours); 318 UpdateAfter24Hours);
319 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTestP, 319 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTest,
320 UpdateForceBypassCache); 320 UpdateForceBypassCache);
321 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTestP, 321 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTest,
322 ServiceWorkerDataRequestAnnotation); 322 ServiceWorkerDataRequestAnnotation);
323 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTestP, 323 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTest,
324 SkipServiceWorkerForServiceWorkerRequest); 324 SkipServiceWorkerForServiceWorkerRequest);
325 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerProviderHostTestP, ContextSecurity); 325 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerProviderHostTest, ContextSecurity);
326 326
327 struct OneShotGetReadyCallback { 327 struct OneShotGetReadyCallback {
328 GetRegistrationForReadyCallback callback; 328 GetRegistrationForReadyCallback callback;
329 bool called; 329 bool called;
330 330
331 explicit OneShotGetReadyCallback( 331 explicit OneShotGetReadyCallback(
332 const GetRegistrationForReadyCallback& callback); 332 const GetRegistrationForReadyCallback& callback);
333 ~OneShotGetReadyCallback(); 333 ~OneShotGetReadyCallback();
334 }; 334 };
335 335
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 bool allow_association_; 415 bool allow_association_;
416 416
417 std::vector<base::Closure> queued_events_; 417 std::vector<base::Closure> queued_events_;
418 418
419 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); 419 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost);
420 }; 420 };
421 421
422 } // namespace content 422 } // namespace content
423 423
424 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ 424 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698