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

Unified Diff: content/browser/mojo/browser_shell_connection.h

Issue 1978843003: Move in-GPU mojo:media app to new thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « content/browser/browser_context.cc ('k') | content/browser/mojo/browser_shell_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/mojo/browser_shell_connection.h
diff --git a/content/browser/mojo/browser_shell_connection.h b/content/browser/mojo/browser_shell_connection.h
index 75e58766d33ff5b65350aab45b2e9d31647cb077..62968320a83f98e8663279e2b2ac5fca1835c01d 100644
--- a/content/browser/mojo/browser_shell_connection.h
+++ b/content/browser/mojo/browser_shell_connection.h
@@ -15,6 +15,7 @@
#include "base/single_thread_task_runner.h"
#include "base/strings/string_piece.h"
#include "content/common/mojo/embedded_application_runner.h"
+#include "content/public/common/mojo_application_info.h"
#include "mojo/public/cpp/bindings/binding_set.h"
#include "services/shell/public/cpp/connector.h"
#include "services/shell/public/cpp/interface_factory.h"
@@ -49,14 +50,10 @@ class BrowserShellConnection
shell::Connector* GetConnector();
// Adds an embedded application to this connection's ShellClientFactory.
- // |callback| will be used to create a new instance of the application on
- // |task_runner|'s thread if no instance is running when an incoming
- // connection is made to |name|. If |task_runner| is null, the calling thread
- // will be used to run the application.
- void AddEmbeddedApplication(
- const base::StringPiece& name,
- const EmbeddedApplicationRunner::FactoryCallback& callback,
- const scoped_refptr<base::SingleThreadTaskRunner>& task_runner);
+ // |info| provides details on how to construct new instances of the
+ // application when an incoming connection is made to |name|.
+ void AddEmbeddedApplication(const base::StringPiece& name,
+ const MojoApplicationInfo& info);
// Adds a generic ShellClientRequestHandler for a given application name. This
// will be used to satisfy any incoming calls to CreateShellClient() which
« no previous file with comments | « content/browser/browser_context.cc ('k') | content/browser/mojo/browser_shell_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698