Index: content/public/browser/content_browser_client.h |
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h |
index c2f5343954bf648ff7002b2e0c7c4683f93f71c8..8753e0c19577913c0b3bcc74807695f9def1d5c5 100644 |
--- a/content/public/browser/content_browser_client.h |
+++ b/content/public/browser/content_browser_client.h |
@@ -105,6 +105,7 @@ class SpeechRecognitionManagerDelegate; |
class WebContents; |
class WebContentsViewDelegate; |
struct MainFunctionParams; |
+struct OpenURLParams; |
struct Referrer; |
struct WebPreferences; |
@@ -595,6 +596,11 @@ class CONTENT_EXPORT ContentBrowserClient { |
RenderFrameHost* render_frame_host, |
blink::WebPageVisibilityState* visibility_state) {} |
+ // Allows programmatic opening of a new tab/window without going through |
+ // another WebContents. For example, from a Worker. |
+ virtual WebContents* OpenURL(BrowserContext* browser_context, |
+ const OpenURLParams& params); |
+ |
#if defined(OS_POSIX) && !defined(OS_MACOSX) |
// Populates |mappings| with all files that need to be mapped before launching |
// a child process. |