diff options
Diffstat (limited to 'remoting/client/jingle_host_connection.h')
-rw-r--r-- | remoting/client/jingle_host_connection.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/remoting/client/jingle_host_connection.h b/remoting/client/jingle_host_connection.h index 96178aa..5fc75cb 100644 --- a/remoting/client/jingle_host_connection.h +++ b/remoting/client/jingle_host_connection.h @@ -22,6 +22,7 @@ #include "base/scoped_ptr.h" #include "base/task.h" #include "remoting/base/protocol_decoder.h" +#include "remoting/client/client_context.h" #include "remoting/client/host_connection.h" #include "remoting/jingle_glue/jingle_channel.h" #include "remoting/jingle_glue/jingle_client.h" @@ -30,18 +31,17 @@ class MessageLoop; namespace remoting { +class ClientConfig; class JingleThread; class JingleHostConnection : public HostConnection, public JingleChannel::Callback, public JingleClient::Callback { public: - explicit JingleHostConnection(JingleThread* network_thread); + explicit JingleHostConnection(ClientContext* context); virtual ~JingleHostConnection(); - virtual void Connect(const std::string& username, - const std::string& auth_token, - const std::string& host_jid, + virtual void Connect(ClientConfig* config, HostEventCallback* event_callback); virtual void Disconnect(); @@ -61,13 +61,11 @@ class JingleHostConnection : public HostConnection, private: MessageLoop* message_loop(); - void DoConnect(const std::string& username, - const std::string& auth_token, - const std::string& host_jid, + void DoConnect(ClientConfig* config, HostEventCallback* event_callback); void DoDisconnect(); - JingleThread* network_thread_; + ClientContext* context_; scoped_refptr<JingleClient> jingle_client_; scoped_refptr<JingleChannel> jingle_channel_; |