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

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

Issue 843583005: [ServiceWorker] Implement WebServiceWorkerContextClient::openWindow(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@content_browser_client_openurl
Patch Set: rebase Created 5 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/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index 9fc6cdd513c5c751d51eae13487596d09ef45d6a..d100eabbbaa7c74a7c5bd7482e7711da00251ea1 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -108,6 +108,7 @@ class SpeechRecognitionManagerDelegate;
class WebContents;
class WebContentsViewDelegate;
struct MainFunctionParams;
+struct OpenURLParams;
struct Referrer;
struct WebPreferences;
@@ -609,6 +610,11 @@ class CONTENT_EXPORT ContentBrowserClient {
virtual PresentationServiceDelegate* GetPresentationServiceDelegate(
WebContents* web_contents);
+ // 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.

Powered by Google App Engine
This is Rietveld 408576698