Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Unified Diff: webrtc/base/proxyserver.h

Issue 2766063005: Revert of Removing HTTPS and SOCKS proxy server code. (Closed)
Patch Set: Merge with master Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/base/proxyinfo.cc ('k') | webrtc/base/proxyserver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/proxyserver.h
diff --git a/webrtc/base/proxyserver.h b/webrtc/base/proxyserver.h
index 1622daf13b347b508566504444abf5160116de79..86007c3606fc33443cdbc63c3c1916493a047686 100644
--- a/webrtc/base/proxyserver.h
+++ b/webrtc/base/proxyserver.h
@@ -83,6 +83,18 @@ class ProxyServer : public sigslot::has_slots<> {
RTC_DISALLOW_COPY_AND_ASSIGN(ProxyServer);
};
+// SocksProxyServer is a simple extension of ProxyServer to implement SOCKS.
+class SocksProxyServer : public ProxyServer {
+ public:
+ SocksProxyServer(SocketFactory* int_factory, const SocketAddress& int_addr,
+ SocketFactory* ext_factory, const SocketAddress& ext_ip)
+ : ProxyServer(int_factory, int_addr, ext_factory, ext_ip) {
+ }
+ protected:
+ AsyncProxyServerSocket* WrapSocket(AsyncSocket* socket) override;
+ RTC_DISALLOW_COPY_AND_ASSIGN(SocksProxyServer);
+};
+
} // namespace rtc
#endif // WEBRTC_BASE_PROXYSERVER_H_
« no previous file with comments | « webrtc/base/proxyinfo.cc ('k') | webrtc/base/proxyserver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698