Index: content/public/browser/render_view_host_delegate.h |
diff --git a/content/public/browser/render_view_host_delegate.h b/content/public/browser/render_view_host_delegate.h |
index dd36549a70e620ba75cb6c89ae3ed33b53b0a462..14d0437d1dc2281be206e82fa6174145e4a4c553 100644 |
--- a/content/public/browser/render_view_host_delegate.h |
+++ b/content/public/browser/render_view_host_delegate.h |
@@ -14,6 +14,7 @@ |
#include "base/process_util.h" |
#include "base/string16.h" |
#include "content/common/content_export.h" |
+#include "content/public/common/page_transition_types.h" |
#include "content/public/common/view_type.h" |
#include "ipc/ipc_channel.h" |
#include "net/base/load_states.h" |
@@ -297,6 +298,14 @@ class CONTENT_EXPORT RenderViewHostDelegate : public IPC::Channel::Listener { |
int64 source_frame_id, |
const content::GlobalRequestID& old_request_id) {} |
+ // The page is asking the browser to decide if the navigation should be |
+ // ignored (only happens if the appropriate renderer pref is set). |
+ virtual bool ShouldIgnoreNavigation(const GURL& url, |
+ const content::Referrer& referrer, |
+ WindowOpenDisposition disposition, |
+ int64 source_frame_id, |
+ bool is_content_initiated); |
+ |
// A javascript message, confirmation or prompt should be shown. |
virtual void RunJavaScriptMessage(RenderViewHost* rvh, |
const string16& message, |