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

Unified Diff: content/child/child_thread.cc

Issue 236813002: Move Mojo channel initialization closer to IPC::Channel setup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: include guards Created 6 years, 8 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/child/child_thread.cc
diff --git a/content/child/child_thread.cc b/content/child/child_thread.cc
index 72be9fba30678ed1e49a9cec6b18d4e0166d84e0..ad28af80b5d019b005a9d45befb6376cc14edad3 100644
--- a/content/child/child_thread.cc
+++ b/content/child/child_thread.cc
@@ -198,7 +198,8 @@ bool ChildThread::ChildThreadMessageRouter::Send(IPC::Message* msg) {
}
ChildThread::ChildThread()
- : router_(this),
+ : mojo_application_(this),
+ router_(this),
channel_connected_factory_(this),
in_browser_process_(false) {
channel_name_ = CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
@@ -207,7 +208,8 @@ ChildThread::ChildThread()
}
ChildThread::ChildThread(const std::string& channel_name)
- : channel_name_(channel_name),
+ : mojo_application_(this),
+ channel_name_(channel_name),
router_(this),
channel_connected_factory_(this),
in_browser_process_(true) {
@@ -349,6 +351,12 @@ void ChildThread::OnChannelError() {
base::MessageLoop::current()->Quit();
}
+void ChildThread::AcceptConnection(
+ const mojo::String& service_name,
+ mojo::ScopedMessagePipeHandle message_pipe) {
+ // By default, we handle no services.
sky 2014/04/22 15:52:20 If we get here does it mean someone is sending the
+}
+
bool ChildThread::Send(IPC::Message* msg) {
DCHECK(base::MessageLoop::current() == message_loop());
if (!channel_) {

Powered by Google App Engine
This is Rietveld 408576698