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

Unified Diff: content/browser/frame_host/navigator.h

Issue 2735183003: PlzNavigate: stop navigations when opening a document for write (Closed)
Patch Set: Addressed commemts Created 3 years, 9 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
« no previous file with comments | « content/browser/frame_host/navigation_request.cc ('k') | content/browser/frame_host/navigator_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/navigator.h
diff --git a/content/browser/frame_host/navigator.h b/content/browser/frame_host/navigator.h
index 5f0a059a79ce0a2c4f7b3e8337b040dc5f32baed..5a1f906639160f6b68ef985da198d19fa30f5467 100644
--- a/content/browser/frame_host/navigator.h
+++ b/content/browser/frame_host/navigator.h
@@ -157,9 +157,16 @@ class CONTENT_EXPORT Navigator : public base::RefCounted<Navigator> {
const BeginNavigationParams& begin_params);
// PlzNavigate
- // Cancel a NavigationRequest for |frame_tree_node|. Called when
- // |frame_tree_node| is destroyed.
- virtual void CancelNavigation(FrameTreeNode* frame_tree_node) {}
+ // Used to abort an ongoing renderer-initiated navigation.
+ virtual void OnAbortNavigation(FrameTreeNode* frame_tree_node) {}
+
+ // PlzNavigate
+ // Cancel a NavigationRequest for |frame_tree_node|. If the request is
+ // renderer-initiated and |inform_renderer| is true, an IPC will be sent to
+ // the renderer process to inform it that the navigation it requested was
+ // cancelled.
+ virtual void CancelNavigation(FrameTreeNode* frame_tree_node,
+ bool inform_renderer) {}
// Called when the network stack started handling the navigation request
// so that the |timestamp| when it happened can be recorded into an histogram.
« no previous file with comments | « content/browser/frame_host/navigation_request.cc ('k') | content/browser/frame_host/navigator_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698