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 d97a87b2d427508961d2973e1f2cbb606a7a872c..67b85810383551964ffd9c53c888dcf36d98ff68 100644 |
--- a/content/public/browser/content_browser_client.h |
+++ b/content/public/browser/content_browser_client.h |
@@ -107,6 +107,7 @@ class SpeechRecognitionManagerDelegate; |
class WebContents; |
class WebContentsViewDelegate; |
struct MainFunctionParams; |
+struct OpenURLParams; |
struct Referrer; |
struct WebPreferences; |
@@ -602,6 +603,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. |