diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-29 22:31:04 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-29 22:31:04 +0000 |
commit | b6e2d6a6e8f662f3e1b119c5f832bfb6035e2e9d (patch) | |
tree | 2de27bafe0491fc83da0386d1cb672c0068fbd55 /remoting/host/chromoting_host.h | |
parent | 1d1b6edb9404bbd8586965b141e799143f6efabb (diff) | |
download | chromium_src-b6e2d6a6e8f662f3e1b119c5f832bfb6035e2e9d.zip chromium_src-b6e2d6a6e8f662f3e1b119c5f832bfb6035e2e9d.tar.gz chromium_src-b6e2d6a6e8f662f3e1b119c5f832bfb6035e2e9d.tar.bz2 |
Remove JingleClient.
Everything that JingleClient was doing has been rolled into JingleSessionManager
BUG=None
TEST=Remoting still works.
Review URL: http://codereview.chromium.org/7277050
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91035 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/chromoting_host.h')
-rw-r--r-- | remoting/host/chromoting_host.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/remoting/host/chromoting_host.h b/remoting/host/chromoting_host.h index 6f969d4..760d895 100644 --- a/remoting/host/chromoting_host.h +++ b/remoting/host/chromoting_host.h @@ -16,8 +16,8 @@ #include "remoting/host/client_session.h" #include "remoting/host/desktop_environment.h" #include "remoting/host/host_status_observer.h" -#include "remoting/jingle_glue/jingle_client.h" #include "remoting/jingle_glue/jingle_thread.h" +#include "remoting/jingle_glue/signal_strategy.h" #include "remoting/protocol/session_manager.h" #include "remoting/protocol/connection_to_client.h" @@ -66,7 +66,7 @@ class ScreenRecorder; class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>, public protocol::ConnectionToClient::EventHandler, public ClientSession::EventHandler, - public JingleClient::Callback { + public SignalStrategy::StatusObserver { public: // Factory methods that must be used to create ChromotingHost instances. // Default capturer and input stub are used if it is not specified. @@ -99,7 +99,7 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>, void AddStatusObserver(HostStatusObserver* observer); //////////////////////////////////////////////////////////////////////////// - // protocol::ConnectionToClient::EventHandler implementations + // protocol::ConnectionToClient::EventHandler implementation. virtual void OnConnectionOpened(protocol::ConnectionToClient* client); virtual void OnConnectionClosed(protocol::ConnectionToClient* client); virtual void OnConnectionFailed(protocol::ConnectionToClient* client); @@ -107,11 +107,13 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>, int64 sequence_number); //////////////////////////////////////////////////////////////////////////// - // JingleClient::Callback implementations - virtual void OnStateChange(JingleClient* client, JingleClient::State state); + // SignalStrategy implementation. + virtual void OnStateChange( + SignalStrategy::StatusObserver::State state) OVERRIDE; + virtual void OnJidChange(const std::string& full_jid) OVERRIDE; //////////////////////////////////////////////////////////////////////////// - // ClientSession::EventHandler implementations + // ClientSession::EventHandler implementation. virtual void LocalLoginSucceeded( scoped_refptr<protocol::ConnectionToClient> client); virtual void LocalLoginFailed( @@ -190,8 +192,7 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>, void ContinueWindowTimerFunc(); // The following methods are called during shutdown. - void ShutdownJingleClient(); - void ShutdownSignallingDisconnected(); + void ShutdownSignaling(); void ShutdownRecorder(); void ShutdownFinish(); @@ -204,9 +205,7 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>, scoped_ptr<SignalStrategy> signal_strategy_; - // The libjingle client. This is used to connect to the talk network to - // receive connection requests from chromoting client. - scoped_refptr<JingleClient> jingle_client_; + std::string local_jid_; scoped_refptr<protocol::SessionManager> session_manager_; |