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

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: Adding subframe limiter test 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
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/public/browser/navigation_handle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/navigation_handle.h
diff --git a/content/public/browser/navigation_handle.h b/content/public/browser/navigation_handle.h
index 75b524f9da50f1f26036433401cc49fda9fd3f63..7f1e8ab7111b27370271d709a85602ea5242a041 100644
--- a/content/public/browser/navigation_handle.h
+++ b/content/public/browser/navigation_handle.h
@@ -48,6 +48,14 @@ 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. Examples of
+ // renderer-initiated navigations include:
+ // * <a> link click
+ // * changing window.location.href
+ // * redirect via the <meta http-equiv="refresh"> tag
+ // * using window.history.pushState
+ virtual bool IsRendererInitiated() = 0;
+
// Whether the navigation is synchronous or not. Examples of synchronous
// navigations are:
// * reference fragment navigations
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/public/browser/navigation_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698