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

Unified Diff: content/browser/loader/navigation_url_loader_impl.h

Issue 2045383002: PlzNavigate: detect when a ServiceWorker is present (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/loader/navigation_url_loader_impl.h
diff --git a/content/browser/loader/navigation_url_loader_impl.h b/content/browser/loader/navigation_url_loader_impl.h
index d3d2d38e713a9898735d6c3c5c561e23450198a9..000e7f96b0b9f2618400728420ca59654cdc4530 100644
--- a/content/browser/loader/navigation_url_loader_impl.h
+++ b/content/browser/loader/navigation_url_loader_impl.h
@@ -21,17 +21,18 @@ namespace content {
class NavigationURLLoaderImplCore;
class NavigationData;
-class ServiceWorkerNavigationHandle;
+class ServiceWorkerContextWrapper;
class StreamHandle;
struct ResourceResponse;
class NavigationURLLoaderImpl : public NavigationURLLoader {
public:
// The caller is responsible for ensuring that |delegate| outlives the loader.
- NavigationURLLoaderImpl(BrowserContext* browser_context,
- std::unique_ptr<NavigationRequestInfo> request_info,
- ServiceWorkerNavigationHandle* service_worker_handle,
- NavigationURLLoaderDelegate* delegate);
+ NavigationURLLoaderImpl(
+ BrowserContext* browser_context,
+ std::unique_ptr<NavigationRequestInfo> request_info,
+ ServiceWorkerContextWrapper* service_worker_context_wrapper,
+ NavigationURLLoaderDelegate* delegate);
~NavigationURLLoaderImpl() override;
// NavigationURLLoader implementation.
@@ -57,6 +58,9 @@ class NavigationURLLoaderImpl : public NavigationURLLoader {
// potential first network request is about to be made.
void NotifyRequestStarted(base::TimeTicks timestamp);
+ // Notifies the delegate that a ServiceWorker was found for this navigation.
+ void NotifyServiceWorkerEncountered();
+
NavigationURLLoaderDelegate* delegate_;
// |core_| is deleted on the IO thread in a subsequent task when the

Powered by Google App Engine
This is Rietveld 408576698