diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-15 23:00:26 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-15 23:00:26 +0000 |
commit | 34f09f1a76bcb5391a602928269272a4ba9aa1c0 (patch) | |
tree | 2aae553ab047d74263b6f89b62fc0a4eb0750dfa /remoting/host/chromoting_host.h | |
parent | 565669351555e4183fbdf23c97842aa3c5841805 (diff) | |
download | chromium_src-34f09f1a76bcb5391a602928269272a4ba9aa1c0.zip chromium_src-34f09f1a76bcb5391a602928269272a4ba9aa1c0.tar.gz chromium_src-34f09f1a76bcb5391a602928269272a4ba9aa1c0.tar.bz2 |
Added HostConfig class. Changed SimpleHost to use it.
BUG=none
TEST=unittests
Review URL: http://codereview.chromium.org/2810002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49852 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/chromoting_host.h')
-rw-r--r-- | remoting/host/chromoting_host.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/remoting/host/chromoting_host.h b/remoting/host/chromoting_host.h index 463d03c..6b00b2e 100644 --- a/remoting/host/chromoting_host.h +++ b/remoting/host/chromoting_host.h @@ -23,6 +23,8 @@ class WaitableEvent; namespace remoting { +class HostConfig; + // A class to implement the functionality of a host process. // // Here's the work flow of this class: @@ -52,9 +54,8 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>, public ClientConnection::EventHandler, public JingleClient::Callback { public: - ChromotingHost(const std::string& username, const std::string& auth_token, - Capturer* capturer, Encoder* encoder, EventExecutor* executor, - base::WaitableEvent* host_done); + ChromotingHost(HostConfig* config, Capturer* capturer, Encoder* encoder, + EventExecutor* executor, base::WaitableEvent* host_done); virtual ~ChromotingHost(); // Run the host porcess. This method returns only after the message loop @@ -108,8 +109,7 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>, // A thread that hosts encode operations. base::Thread encode_thread_; - std::string username_; - std::string auth_token_; + scoped_refptr<HostConfig> config_; // Capturer to be used by SessionManager. Once the SessionManager is // constructed this is set to NULL. |