Chromium Code Reviews| Index: remoting/host/chromoting_host_context.h |
| diff --git a/remoting/host/chromoting_host_context.h b/remoting/host/chromoting_host_context.h |
| index 2e3480d69d3a1c50f59421615d2aad0d494ce494..e7acafb511ee776577575fa1c0456370c5a76cec 100644 |
| --- a/remoting/host/chromoting_host_context.h |
| +++ b/remoting/host/chromoting_host_context.h |
| @@ -16,6 +16,11 @@ namespace base { |
| class SingleThreadTaskRunner; |
| } // namespace base |
| +namespace IPC { |
| +class ChannelProxy; |
| +class Listener; |
| +} // namespace IPC |
| + |
| namespace net { |
| class URLRequestContextGetter; |
| } // namespace net |
| @@ -65,6 +70,17 @@ class ChromotingHostContext { |
| // configuration and by NatConfig to read policy configs. |
| virtual base::SingleThreadTaskRunner* file_task_runner(); |
| + // Returns a pointer to the IPC channel connecting this process with |
| + // the daemon process. NULL can be returned if no channel exists. |
|
simonmorris
2012/08/16 20:43:02
"can be" -> "is".
alexeypa (please no reviews)
2012/08/16 20:53:52
Done.
|
| + IPC::ChannelProxy* daemon_channel(); |
| + |
| + // Connects to the endpoint provided by the daemon procesess. |
|
simonmorris
2012/08/16 20:43:02
"process", or "processes"?
alexeypa (please no reviews)
2012/08/16 20:53:52
Done.
|
| + void ConnectToDaemon(const std::string& channel_name, |
| + IPC::Listener* listener); |
| + |
| + // Disconnects from the daemon procesess. |
|
simonmorris
2012/08/16 20:43:02
same
alexeypa (please no reviews)
2012/08/16 20:53:52
Done.
|
| + void DisconnectFromDaemon(); |
| + |
| const scoped_refptr<net::URLRequestContextGetter>& |
| url_request_context_getter(); |
| @@ -86,6 +102,9 @@ class ChromotingHostContext { |
| // Thread for blocking IO operations. |
| base::Thread file_thread_; |
| + // The IPC channel connection us to the daemon process. |
|
simonmorris
2012/08/16 20:43:02
"connection" -> "connecting"
alexeypa (please no reviews)
2012/08/16 20:53:52
Done.
|
| + scoped_ptr<IPC::ChannelProxy> daemon_channel_; |
| + |
| scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; |
| scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; |