summaryrefslogtreecommitdiffstats
path: root/remoting/host/chromoting_host.h
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/host/chromoting_host.h')
-rw-r--r--remoting/host/chromoting_host.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/remoting/host/chromoting_host.h b/remoting/host/chromoting_host.h
index 99f1fd7..3404c64 100644
--- a/remoting/host/chromoting_host.h
+++ b/remoting/host/chromoting_host.h
@@ -69,6 +69,8 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>,
public:
// Factory methods that must be used to create ChromotingHost instances.
// Default capturer and input stub are used if it is not specified.
+ // Returned instance takes ownership of |access_verifier| and |environment|,
+ // and adds a reference to |config|. It does NOT take ownership of |context|.
static ChromotingHost* Create(ChromotingHostContext* context,
MutableHostConfig* config,
AccessVerifier* access_verifier);
@@ -128,6 +130,8 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>,
typedef std::vector<scoped_refptr<HostStatusObserver> > StatusObserverList;
typedef std::vector<scoped_refptr<ClientSession> > ClientList;
+ // Takes ownership of |access_verifier| and |environment|, and adds a
+ // reference to |config|. Does NOT take ownership of |context|.
ChromotingHost(ChromotingHostContext* context,
MutableHostConfig* config,
DesktopEnvironment* environment,