summaryrefslogtreecommitdiffstats
path: root/third_party/libjingle/files/talk/base/autodetectproxy.h
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-03 00:56:28 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-03 00:56:28 +0000
commit2085baaafba8448c060ce566f6433a9bef4058bb (patch)
tree20e4610011554632e4cb6c3d365ac00083daee3b /third_party/libjingle/files/talk/base/autodetectproxy.h
parent06650c582f9cfcf3869c490f3dc1ca224d6c9963 (diff)
downloadchromium_src-2085baaafba8448c060ce566f6433a9bef4058bb.zip
chromium_src-2085baaafba8448c060ce566f6433a9bef4058bb.tar.gz
chromium_src-2085baaafba8448c060ce566f6433a9bef4058bb.tar.bz2
New libjingle integrated to chrome.
BUG=none TEST=Chrome Sync works Review URL: http://codereview.chromium.org/2255007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48798 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/libjingle/files/talk/base/autodetectproxy.h')
-rw-r--r--third_party/libjingle/files/talk/base/autodetectproxy.h68
1 files changed, 0 insertions, 68 deletions
diff --git a/third_party/libjingle/files/talk/base/autodetectproxy.h b/third_party/libjingle/files/talk/base/autodetectproxy.h
deleted file mode 100644
index 43d765e..0000000
--- a/third_party/libjingle/files/talk/base/autodetectproxy.h
+++ /dev/null
@@ -1,68 +0,0 @@
-#ifndef _AUTODETECTPROXY_H_
-#define _AUTODETECTPROXY_H_
-
-#include "talk/base/sigslot.h"
-#include "talk/base/physicalsocketserver.h"
-#include "talk/base/proxyinfo.h"
-#include "talk/base/signalthread.h"
-#include "talk/base/cryptstring.h"
-
-namespace buzz {
-class XmppClientSettings;
-}
-
-namespace talk_base {
-
-///////////////////////////////////////////////////////////////////////////////
-// AutoDetectProxy
-///////////////////////////////////////////////////////////////////////////////
-
-class AsyncSocket;
-
-class AutoDetectProxy : public SignalThread {
-public:
- AutoDetectProxy(const std::string& user_agent);
-
- const talk_base::ProxyInfo& proxy() const { return proxy_; }
-
- void set_server_url(const std::string& url) {
- server_url_ = url;
- }
- void set_proxy(const SocketAddress& proxy) {
- proxy_.type = PROXY_UNKNOWN;
- proxy_.address = proxy;
- }
- void set_auth_info(bool use_auth, const std::string& username,
- const CryptString& password) {
- if (use_auth) {
- proxy_.username = username;
- proxy_.password = password;
- }
- }
-
-protected:
- virtual ~AutoDetectProxy();
-
- // SignalThread Interface
- virtual void DoWork();
- virtual void OnMessage(Message *msg);
-
- void Next();
- void Complete(ProxyType type);
-
- void OnConnectEvent(AsyncSocket * socket);
- void OnReadEvent(AsyncSocket * socket);
- void OnCloseEvent(AsyncSocket * socket, int error);
-
-private:
- std::string agent_, server_url_;
- ProxyInfo proxy_;
- AsyncSocket * socket_;
- int next_;
-};
-
-///////////////////////////////////////////////////////////////////////////////
-
-} // namespace talk_base
-
-#endif // _AUTODETECTPROXY_H_