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

Unified Diff: content/public/browser/navigation_handle.h

Issue 1964863002: Persist prompt/block download limiter state on renderer-initiated loads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implement DidFinishNavigation Created 4 years, 7 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/public/browser/navigation_handle.h
diff --git a/content/public/browser/navigation_handle.h b/content/public/browser/navigation_handle.h
index 124ef31b0ab042f9db51b1a4a4257c009f8a9dff..8484ca341e3d18672e16a3b975e9b61b6e1b11c0 100644
--- a/content/public/browser/navigation_handle.h
+++ b/content/public/browser/navigation_handle.h
@@ -47,6 +47,11 @@ class CONTENT_EXPORT NavigationHandle {
// of the main frame. This remains constant over the navigation lifetime.
virtual bool IsParentMainFrame() = 0;
+ // Whether the navigation was initated by the renderer process, e.g. if:
+ // * a website changes window.location.href
+ // * <meta http-equiv="refresh"> tag
Charlie Reis 2016/05/11 21:50:04 nit: Let's be a bit more explicit that these are j
dominickn 2016/05/12 04:22:58 Done.
+ virtual bool IsRendererInitiated() = 0;
+
// Whether the navigation is synchronous or not. Examples of synchronous
// navigations are:
// * reference fragment navigations

Powered by Google App Engine
This is Rietveld 408576698