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

Unified Diff: content/common/mojo/mojo_shell_connection_impl.h

Issue 2100693002: Make RenderProcessHost/RenderThread use MojoChildConnection/MojoShellConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rph2
Patch Set: . Created 4 years, 6 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/child/child_thread_impl.cc ('k') | content/common/mojo/mojo_shell_connection_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/mojo/mojo_shell_connection_impl.h
diff --git a/content/common/mojo/mojo_shell_connection_impl.h b/content/common/mojo/mojo_shell_connection_impl.h
index c1adb5f3a1513f52c5eb6c84e577da75cb37751c..b20cd0ad4cb67e410ac21fa20f9b93872646b7ec 100644
--- a/content/common/mojo/mojo_shell_connection_impl.h
+++ b/content/common/mojo/mojo_shell_connection_impl.h
@@ -38,6 +38,7 @@ class MojoShellConnectionImpl
void SetConnectionLostClosure(const base::Closure& closure) override;
void AddEmbeddedShellClient(
std::unique_ptr<shell::ShellClient> shell_client) override;
+ void AddEmbeddedShellClient(shell::ShellClient* shell_client) override;
void AddEmbeddedService(const std::string& name,
const MojoApplicationInfo& info) override;
void AddShellClientRequestHandler(
@@ -49,6 +50,8 @@ class MojoShellConnectionImpl
const shell::Identity& identity,
uint32_t id) override;
bool AcceptConnection(shell::Connection* connection) override;
+ shell::InterfaceRegistry* GetInterfaceRegistryForConnection() override;
+ shell::InterfaceProvider* GetInterfaceProviderForConnection() override;
// shell::InterfaceFactory<shell::mojom::ShellClientFactory>:
void Create(shell::Connection* connection,
@@ -60,7 +63,8 @@ class MojoShellConnectionImpl
std::unique_ptr<shell::ShellConnection> shell_connection_;
mojo::BindingSet<shell::mojom::ShellClientFactory> factory_bindings_;
- std::vector<std::unique_ptr<shell::ShellClient>> embedded_shell_clients_;
+ std::vector<shell::ShellClient*> embedded_shell_clients_;
+ std::vector<std::unique_ptr<shell::ShellClient>> owned_shell_clients_;
std::unordered_map<std::string, std::unique_ptr<EmbeddedApplicationRunner>>
embedded_apps_;
std::unordered_map<std::string, ShellClientRequestHandler> request_handlers_;
« no previous file with comments | « content/child/child_thread_impl.cc ('k') | content/common/mojo/mojo_shell_connection_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698