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

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

Issue 897673002: First step in enabling creating tabs without an Activity on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a-base-mounir
Patch Set: rebase Created 5 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/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 5e5d5d4296603604897ba802d38de83c0c8b3b70..519ff938994e0be0e65e8128962630d0f203b359 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -616,9 +616,11 @@ class CONTENT_EXPORT ContentBrowserClient {
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);
+ // another WebContents. For example, from a Worker. |callback| will be
+ // invoked with the appropriate WebContents* when available.
+ virtual void OpenURL(BrowserContext* browser_context,
+ const OpenURLParams& params,
+ const base::Callback<void(WebContents*)>& callback);
#if defined(OS_POSIX) && !defined(OS_MACOSX)
// Populates |mappings| with all files that need to be mapped before launching
« no previous file with comments | « content/browser/service_worker/service_worker_version.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698