| Index: remoting/host/chromoting_host_context.cc
|
| diff --git a/remoting/host/chromoting_host_context.cc b/remoting/host/chromoting_host_context.cc
|
| index 480de732922a9282de5dac6a984b884150f6f2ec..a3a24443ef2b7d53cbb4e7320c396459505b51bf 100644
|
| --- a/remoting/host/chromoting_host_context.cc
|
| +++ b/remoting/host/chromoting_host_context.cc
|
| @@ -8,6 +8,8 @@
|
|
|
| #include "base/bind.h"
|
| #include "base/threading/thread.h"
|
| +#include "ipc/ipc_channel.h"
|
| +#include "ipc/ipc_channel_proxy.h"
|
| #include "remoting/host/url_request_context.h"
|
|
|
| namespace remoting {
|
| @@ -66,6 +68,21 @@ base::SingleThreadTaskRunner* ChromotingHostContext::file_task_runner() {
|
| return file_thread_.message_loop_proxy();
|
| }
|
|
|
| +IPC::ChannelProxy* ChromotingHostContext::daemon_channel() {
|
| + return daemon_channel_.get();
|
| +}
|
| +
|
| +void ChromotingHostContext::ConnectToDaemon(const std::string& channel_name,
|
| + IPC::Listener* listener) {
|
| + daemon_channel_.reset(new IPC::ChannelProxy(
|
| + channel_name, IPC::Channel::MODE_CLIENT, listener,
|
| + network_task_runner()));
|
| +}
|
| +
|
| +void ChromotingHostContext::DisconnectFromDaemon() {
|
| + daemon_channel_.reset(NULL);
|
| +}
|
| +
|
| const scoped_refptr<net::URLRequestContextGetter>&
|
| ChromotingHostContext::url_request_context_getter() {
|
| DCHECK(url_request_context_getter_.get());
|
|
|