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

Unified Diff: content/common/child_process_host_impl.h

Issue 960693003: Enable ChannelMojo for non-renderer child processes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Splitted out the ipc/ change Created 5 years, 9 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/child_process_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/child_process_host_impl.h
diff --git a/content/common/child_process_host_impl.h b/content/common/child_process_host_impl.h
index 93ff0ebe1d1b33802cd7b4ca2348c6e74a13a41f..4e6ae68ff5c8e98a13402bc0f4b6a69a8de1bf5c 100644
--- a/content/common/child_process_host_impl.h
+++ b/content/common/child_process_host_impl.h
@@ -26,6 +26,7 @@ class FilePath;
namespace IPC {
class MessageFilter;
+class ChannelMojoHost;
}
namespace content {
@@ -61,6 +62,8 @@ class CONTENT_EXPORT ChildProcessHostImpl : public ChildProcessHost,
std::string CreateChannel() override;
bool IsChannelOpening() override;
void AddFilter(IPC::MessageFilter* filter) override;
+ void OnProcessLaunched(base::ProcessHandle process) override;
+
#if defined(OS_POSIX)
base::ScopedFD TakeClientFileDescriptor() override;
#endif
@@ -92,6 +95,7 @@ class CONTENT_EXPORT ChildProcessHostImpl : public ChildProcessHost,
base::Process peer_process_;
bool opening_channel_; // True while we're waiting the channel to be opened.
scoped_ptr<IPC::Channel> channel_;
+ scoped_ptr<IPC::ChannelMojoHost> channel_mojo_host_;
std::string channel_id_;
// Holds all the IPC message filters. Since this object lives on the IO
« no previous file with comments | « content/child/child_thread_impl.cc ('k') | content/common/child_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698