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

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

Issue 2666193002: Switch RenderViewContextMenu to use RequestOpenURL (Closed)
Patch Set: Add started_from_context_menu Created 3 years, 11 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/page_navigator.h
diff --git a/content/public/browser/page_navigator.h b/content/public/browser/page_navigator.h
index 945c96ec763622ccb5d52ba036cd723e8867deec..b7fd9f96e0dd7ff8f3ce19a91d838cfc7698b993 100644
--- a/content/public/browser/page_navigator.h
+++ b/content/public/browser/page_navigator.h
@@ -14,6 +14,7 @@
#include "base/memory/ref_counted.h"
#include "content/common/content_export.h"
#include "content/public/browser/global_request_id.h"
+#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/site_instance.h"
#include "content/public/common/referrer.h"
#include "content/public/common/resource_request_body.h"
@@ -99,6 +100,10 @@ class PageNavigator {
public:
virtual ~PageNavigator() {}
+ // Opens a URL with the given parameters.
+ virtual void RequestOpenURL(RenderFrameHost* render_frame_host,
Charlie Reis 2017/02/02 23:34:22 I think we'll need to find a way to improve this p
+ const OpenURLParams& params) {}
+
// Opens a URL with the given disposition. The transition specifies how this
// navigation should be recorded in the history system (for example, typed).
// Returns the WebContents the URL is opened in, or nullptr if the URL wasn't

Powered by Google App Engine
This is Rietveld 408576698