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

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

Issue 2019613003: ServiceWorker: Bypass SW when the script doesn't have fetch handler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the nits Created 4 years, 6 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 friend class base::RefCounted<ServiceWorkerVersion>; 323 friend class base::RefCounted<ServiceWorkerVersion>;
324 friend class ServiceWorkerMetrics; 324 friend class ServiceWorkerMetrics;
325 friend class ServiceWorkerReadFromCacheJobTest; 325 friend class ServiceWorkerReadFromCacheJobTest;
326 friend class ServiceWorkerStallInStoppingTest; 326 friend class ServiceWorkerStallInStoppingTest;
327 friend class ServiceWorkerURLRequestJobTest; 327 friend class ServiceWorkerURLRequestJobTest;
328 friend class ServiceWorkerVersionBrowserTest; 328 friend class ServiceWorkerVersionBrowserTest;
329 friend class ServiceWorkerVersionTest; 329 friend class ServiceWorkerVersionTest;
330 330
331 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest, 331 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest,
332 ActivateWaitingVersion); 332 ActivateWaitingVersion);
333 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest,
334 FallbackWithNoFetchHandler);
333 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, IdleTimeout); 335 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, IdleTimeout);
334 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, SetDevToolsAttached); 336 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, SetDevToolsAttached);
335 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, StaleUpdate_FreshWorker); 337 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, StaleUpdate_FreshWorker);
336 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, 338 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest,
337 StaleUpdate_NonActiveWorker); 339 StaleUpdate_NonActiveWorker);
338 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, StaleUpdate_StartWorker); 340 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, StaleUpdate_StartWorker);
339 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, StaleUpdate_RunningWorker); 341 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, StaleUpdate_RunningWorker);
340 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, 342 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest,
341 StaleUpdate_DoNotDeferTimer); 343 StaleUpdate_DoNotDeferTimer);
342 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, RequestTimeout); 344 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, RequestTimeout);
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 758
757 // At this point |this| can have been deleted, so don't do anything other 759 // At this point |this| can have been deleted, so don't do anything other
758 // than returning. 760 // than returning.
759 761
760 return true; 762 return true;
761 } 763 }
762 764
763 } // namespace content 765 } // namespace content
764 766
765 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 767 #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