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

Unified Diff: content/child/child_thread_impl.h

Issue 2183703005: Renderers should obtain browser InterfaceProvider by connecting to browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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/utility_process_host_impl.cc ('k') | content/child/child_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_thread_impl.h
diff --git a/content/child/child_thread_impl.h b/content/child/child_thread_impl.h
index a68a63924d3fdfd99d43f1cb64c0498bf9046169..ae2fa203fecd7d5fffb15ed5a2853d69887af8b1 100644
--- a/content/child/child_thread_impl.h
+++ b/content/child/child_thread_impl.h
@@ -34,6 +34,10 @@ class SyncChannel;
class SyncMessageFilter;
} // namespace IPC
+namespace shell {
+class Connection;
+} // namespace shell
+
namespace mojo {
namespace edk {
class ScopedIPCSupport;
@@ -255,6 +259,7 @@ class CONTENT_EXPORT ChildThreadImpl
std::unique_ptr<shell::InterfaceRegistry> interface_registry_;
std::unique_ptr<shell::InterfaceProvider> remote_interfaces_;
std::unique_ptr<MojoShellConnection> mojo_shell_connection_;
+ std::unique_ptr<shell::Connection> browser_connection_;
std::string channel_name_;
std::unique_ptr<IPC::SyncChannel> channel_;
@@ -325,6 +330,7 @@ struct ChildThreadImpl::Options {
std::string channel_name;
bool use_mojo_channel;
bool auto_start_mojo_shell_connection;
+ bool connect_to_browser;
scoped_refptr<base::SequencedTaskRunner> browser_process_io_runner;
std::vector<IPC::MessageFilter*> startup_filters;
std::string in_process_ipc_token;
@@ -341,6 +347,7 @@ class ChildThreadImpl::Options::Builder {
Builder& InBrowserProcess(const InProcessChildThreadParams& params);
Builder& UseMojoChannel(bool use_mojo_channel);
Builder& AutoStartMojoShellConnection(bool auto_start);
+ Builder& ConnectToBrowser(bool connect_to_browser);
Builder& WithChannelName(const std::string& channel_name);
Builder& AddStartupFilter(IPC::MessageFilter* filter);
« no previous file with comments | « content/browser/utility_process_host_impl.cc ('k') | content/child/child_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698