diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-14 00:55:18 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-14 00:55:18 +0000 |
commit | 1635de0fadc0a867187208769d37e466a8e9914f (patch) | |
tree | 90e970ed50159a62164e51d5df28175215faf8b5 /remoting/jingle_glue/jingle_client.h | |
parent | e321a3c8eef6418c248743fdb68aa8bbba02e98f (diff) | |
download | chromium_src-1635de0fadc0a867187208769d37e466a8e9914f.zip chromium_src-1635de0fadc0a867187208769d37e466a8e9914f.tar.gz chromium_src-1635de0fadc0a867187208769d37e466a8e9914f.tar.bz2 |
Remove old tunneling code from remoting/jingle_glue.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/3574014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62489 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/jingle_glue/jingle_client.h')
-rw-r--r-- | remoting/jingle_glue/jingle_client.h | 34 |
1 files changed, 4 insertions, 30 deletions
diff --git a/remoting/jingle_glue/jingle_client.h b/remoting/jingle_glue/jingle_client.h index e9bf84d..1d0920a 100644 --- a/remoting/jingle_glue/jingle_client.h +++ b/remoting/jingle_glue/jingle_client.h @@ -7,10 +7,12 @@ #include <string> -#include "remoting/jingle_glue/jingle_channel.h" +#include "base/lock.h" +#include "base/ref_counted.h" #include "third_party/libjingle/source/talk/xmpp/xmppclient.h" class MessageLoop; +class Task; namespace talk_base { class NetworkManager; @@ -31,6 +33,7 @@ class Session; namespace remoting { class IqRequest; +class JingleThread; class JingleClient : public base::RefCountedThreadSafe<JingleClient>, public sigslot::has_slots<> { @@ -48,18 +51,6 @@ class JingleClient : public base::RefCountedThreadSafe<JingleClient>, // Called when state of the connection is changed. virtual void OnStateChange(JingleClient* client, State state) = 0; - - // Called when a client attempts to connect to the machine. If the - // connection should be accepted, must return true and must set - // channel_callback to the callback for the new channel. - virtual bool OnAcceptConnection( - JingleClient* client, const std::string& jid, - JingleChannel::Callback** channel_callback) = 0; - - // Called when a new client connects to the host. Ownership of the |channel| - // is transfered to the callee. - virtual void OnNewConnection(JingleClient* client, - scoped_refptr<JingleChannel> channel) = 0; }; // Creates a JingleClient object that executes on |thread|. This does not @@ -74,14 +65,6 @@ class JingleClient : public base::RefCountedThreadSafe<JingleClient>, void Init(const std::string& username, const std::string& auth_token, const std::string& auth_token_service, Callback* callback); - // Creates new JingleChannel connected to the host with the specified jid. - // The result is returned immediately but the channel fails if the host - // rejects connection. |host_jid| must be a full jid (includes resource ID). - // Ownership of the result is transfered to the caller. The channel must - // be closed/destroyed before JingleClient is destroyed. - JingleChannel* Connect(const std::string& host_jid, - JingleChannel::Callback* callback); - // Closes XMPP connection and stops the thread. Must be called before the // object is destroyed. If specified, |closed_task| is executed after the // connection is successfully closed. @@ -115,18 +98,10 @@ class JingleClient : public base::RefCountedThreadSafe<JingleClient>, void OnConnectionStateChanged(buzz::XmppEngine::State state); - void OnIncomingTunnel(cricket::TunnelSessionClient* client, buzz::Jid jid, - std::string description, cricket::Session* session); - void DoInitialize(const std::string& username, const std::string& auth_token, const std::string& auth_token_service); - // Used by Connect(). - void DoConnect(scoped_refptr<JingleChannel> channel, - const std::string& host_jid, - JingleChannel::Callback* callback); - // Used by Close(). void DoClose(); @@ -160,7 +135,6 @@ class JingleClient : public base::RefCountedThreadSafe<JingleClient>, scoped_ptr<talk_base::NetworkManager> network_manager_; scoped_ptr<cricket::BasicPortAllocator> port_allocator_; scoped_ptr<cricket::SessionManager> session_manager_; - scoped_ptr<cricket::TunnelSessionClient> tunnel_session_client_; DISALLOW_COPY_AND_ASSIGN(JingleClient); }; |