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

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

Issue 2103063002: ServiceWorker: Reland of bypassing SW when no fetch handler existed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@return_response_to_forward_to_network
Patch Set: Use FallbackToNetworkOrRenderer and add a test case Created 4 years, 5 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
« no previous file with comments | « content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_VERSION_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <functional> 10 #include <functional>
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 friend class base::RefCounted<ServiceWorkerVersion>; 348 friend class base::RefCounted<ServiceWorkerVersion>;
349 friend class ServiceWorkerMetrics; 349 friend class ServiceWorkerMetrics;
350 friend class ServiceWorkerReadFromCacheJobTest; 350 friend class ServiceWorkerReadFromCacheJobTest;
351 friend class ServiceWorkerStallInStoppingTest; 351 friend class ServiceWorkerStallInStoppingTest;
352 friend class ServiceWorkerURLRequestJobTest; 352 friend class ServiceWorkerURLRequestJobTest;
353 friend class ServiceWorkerVersionBrowserTest; 353 friend class ServiceWorkerVersionBrowserTest;
354 friend class ServiceWorkerVersionTest; 354 friend class ServiceWorkerVersionTest;
355 355
356 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest, 356 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest,
357 ActivateWaitingVersion); 357 ActivateWaitingVersion);
358 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest,
359 FallbackWithNoFetchHandler);
358 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, IdleTimeout); 360 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, IdleTimeout);
359 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, SetDevToolsAttached); 361 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, SetDevToolsAttached);
360 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, StaleUpdate_FreshWorker); 362 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, StaleUpdate_FreshWorker);
361 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, 363 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest,
362 StaleUpdate_NonActiveWorker); 364 StaleUpdate_NonActiveWorker);
363 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, StaleUpdate_StartWorker); 365 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, StaleUpdate_StartWorker);
364 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, StaleUpdate_RunningWorker); 366 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, StaleUpdate_RunningWorker);
365 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, 367 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest,
366 StaleUpdate_DoNotDeferTimer); 368 StaleUpdate_DoNotDeferTimer);
367 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, RequestTimeout); 369 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, RequestTimeout);
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 785
784 // At this point |this| can have been deleted, so don't do anything other 786 // At this point |this| can have been deleted, so don't do anything other
785 // than returning. 787 // than returning.
786 788
787 return true; 789 return true;
788 } 790 }
789 791
790 } // namespace content 792 } // namespace content
791 793
792 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 794 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698