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

Unified Diff: remoting/host/chromoting_host_context.h

Issue 10837291: [Chromoting] Moving the daemon IPC channel to ChromotingHostContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | « no previous file | remoting/host/chromoting_host_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « no previous file | remoting/host/chromoting_host_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698