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..0f7c7a89985051183dc5d9220b9b52260d94cc2e 100644 |
--- a/content/public/browser/navigation_handle.h |
+++ b/content/public/browser/navigation_handle.h |
@@ -47,6 +47,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 |