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

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

Issue 9978015: Make browser_handles_top_level_requests synchronous. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ExternalTabContainer::ShouldIgnoreNavigation returns true if is_content_initiated Created 8 years, 8 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/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,

Powered by Google App Engine
This is Rietveld 408576698