| Index: content/child/child_thread.h
|
| diff --git a/content/child/child_thread.h b/content/child/child_thread.h
|
| index f8d9bf4367773d8cbaf85adb820ca479a53d9f7a..a12f38856aeebc8d334e7a337e51c20c9d2ae30a 100644
|
| --- a/content/child/child_thread.h
|
| +++ b/content/child/child_thread.h
|
| @@ -13,9 +13,11 @@
|
| #include "base/memory/weak_ptr.h"
|
| #include "base/power_monitor/power_monitor.h"
|
| #include "base/tracked_objects.h"
|
| +#include "content/child/mojo/mojo_application.h"
|
| #include "content/common/content_export.h"
|
| #include "content/common/message_router.h"
|
| #include "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED.
|
| +#include "mojo/public/interfaces/shell/shell.mojom.h"
|
|
|
| namespace base {
|
| class MessageLoop;
|
| @@ -54,7 +56,9 @@ class WebSocketDispatcher;
|
| struct RequestInfo;
|
|
|
| // The main thread of a child process derives from this class.
|
| -class CONTENT_EXPORT ChildThread : public IPC::Listener, public IPC::Sender {
|
| +class CONTENT_EXPORT ChildThread : public IPC::Listener,
|
| + public IPC::Sender,
|
| + public mojo::ShellClient {
|
| public:
|
| // Creates the thread.
|
| ChildThread();
|
| @@ -170,6 +174,11 @@ class CONTENT_EXPORT ChildThread : public IPC::Listener, public IPC::Sender {
|
| virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
|
| virtual void OnChannelError() OVERRIDE;
|
|
|
| + // mojo::ShellClient implementation:
|
| + virtual void AcceptConnection(
|
| + const mojo::String& service_name,
|
| + mojo::ScopedMessagePipeHandle message_pipe) OVERRIDE;
|
| +
|
| private:
|
| class ChildThreadMessageRouter : public MessageRouter {
|
| public:
|
| @@ -197,6 +206,8 @@ class CONTENT_EXPORT ChildThread : public IPC::Listener, public IPC::Sender {
|
|
|
| void EnsureConnected();
|
|
|
| + MojoApplication mojo_application_;
|
| +
|
| std::string channel_name_;
|
| scoped_ptr<IPC::SyncChannel> channel_;
|
|
|
|
|