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

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: 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
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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 friend class base::RefCounted<ServiceWorkerVersion>; 321 friend class base::RefCounted<ServiceWorkerVersion>;
322 friend class ServiceWorkerMetrics; 322 friend class ServiceWorkerMetrics;
323 friend class ServiceWorkerReadFromCacheJobTest; 323 friend class ServiceWorkerReadFromCacheJobTest;
324 friend class ServiceWorkerStallInStoppingTest; 324 friend class ServiceWorkerStallInStoppingTest;
325 friend class ServiceWorkerURLRequestJobTest; 325 friend class ServiceWorkerURLRequestJobTest;
326 friend class ServiceWorkerVersionBrowserTest; 326 friend class ServiceWorkerVersionBrowserTest;
327 friend class ServiceWorkerVersionTest; 327 friend class ServiceWorkerVersionTest;
328 328
329 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest, 329 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest,
330 ActivateWaitingVersion); 330 ActivateWaitingVersion);
331 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest,
332 FallbackWithNoFetchHandler);
331 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, IdleTimeout); 333 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, IdleTimeout);
332 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, SetDevToolsAttached); 334 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, SetDevToolsAttached);
333 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, StaleUpdate_FreshWorker); 335 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, StaleUpdate_FreshWorker);
334 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, 336 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest,
335 StaleUpdate_NonActiveWorker); 337 StaleUpdate_NonActiveWorker);
336 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, StaleUpdate_StartWorker); 338 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, StaleUpdate_StartWorker);
337 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, StaleUpdate_RunningWorker); 339 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, StaleUpdate_RunningWorker);
338 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, 340 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest,
339 StaleUpdate_DoNotDeferTimer); 341 StaleUpdate_DoNotDeferTimer);
340 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, RequestTimeout); 342 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, RequestTimeout);
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 756
755 // At this point |this| can have been deleted, so don't do anything other 757 // At this point |this| can have been deleted, so don't do anything other
756 // than returning. 758 // than returning.
757 759
758 return true; 760 return true;
759 } 761 }
760 762
761 } // namespace content 763 } // namespace content
762 764
763 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 765 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698