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

Unified Diff: content/browser/frame_host/navigation_request.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/frame_host/navigation_request.h
diff --git a/content/browser/frame_host/navigation_request.h b/content/browser/frame_host/navigation_request.h
index 30e9b2f6ee3d9d9428661c69752ad2db0da04053..3954cedc27375589c951d412cafe142765a7b622 100644
--- a/content/browser/frame_host/navigation_request.h
+++ b/content/browser/frame_host/navigation_request.h
@@ -179,6 +179,7 @@ class CONTENT_EXPORT NavigationRequest : public NavigationURLLoaderDelegate {
std::unique_ptr<NavigationData> navigation_data) override;
void OnRequestFailed(bool has_stale_copy_in_cache, int net_error) override;
void OnRequestStarted(base::TimeTicks timestamp) override;
+ void OnServiceWorkerEncountered() override;
// Called when the NavigationThrottles have been checked by the
// NavigationHandle.
@@ -191,9 +192,6 @@ class CONTENT_EXPORT NavigationRequest : public NavigationURLLoaderDelegate {
// be destroyed after this call.
void CommitNavigation();
- // Called when the navigation is about to be sent to the IO thread.
- void InitializeServiceWorkerHandleIfNeeded();
-
FrameTreeNode* frame_tree_node_;
// Initialized on creation of the NavigationRequest. Sent to the renderer when

Powered by Google App Engine
This is Rietveld 408576698