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

Unified Diff: content/renderer/render_view_impl.h

Issue 9325082: Create window in a new BrowsingInstance when opening a link in a new process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use correct navigation policy. Created 8 years, 10 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/renderer/render_view_impl.h
diff --git a/content/renderer/render_view_impl.h b/content/renderer/render_view_impl.h
index 6c60ae33157055cf569cce2545ec1a7d30dbb37d..6a5221f562c9c489a797ecb717ead38052af203a 100644
--- a/content/renderer/render_view_impl.h
+++ b/content/renderer/render_view_impl.h
@@ -469,6 +469,8 @@ class RenderViewImpl : public RenderWidget,
const WebKit::WebURL& from);
virtual void didCreateDataSource(WebKit::WebFrame* frame,
WebKit::WebDataSource* datasource);
+ virtual void didSetNextNavigationPolicy(
+ WebKit::WebNavigationPolicy policy);
virtual void didStartProvisionalLoad(WebKit::WebFrame* frame);
virtual void didReceiveServerRedirectForProvisionalLoad(
WebKit::WebFrame* frame);
@@ -1023,6 +1025,10 @@ class RenderViewImpl : public RenderWidget,
// decidePolicyForNavigation for details.
bool opener_suppressed_;
+ // The disposition for the window that is about to be opened.
+ // Set to WebNavigationPolicyIgnore otherwise.
+ WebKit::WebNavigationPolicy new_window_navigation_policy_;
+
// If we are handling a top-level client-side redirect, this tracks the URL
// of the page that initiated it. Specifically, when a load is committed this
// is used to determine if that load originated from a client-side redirect.

Powered by Google App Engine
This is Rietveld 408576698