| Index: webrtc/base/proxyinfo.cc
|
| diff --git a/webrtc/base/proxyinfo.h b/webrtc/base/proxyinfo.cc
|
| similarity index 60%
|
| copy from webrtc/base/proxyinfo.h
|
| copy to webrtc/base/proxyinfo.cc
|
| index cd5c3875dd9ccffa5eb07bee68ec921d982bd7e6..76c7708286ec79724780b4a64a3181c6abe9174e 100644
|
| --- a/webrtc/base/proxyinfo.h
|
| +++ b/webrtc/base/proxyinfo.cc
|
| @@ -8,20 +8,17 @@
|
| * be found in the AUTHORS file in the root of the source tree.
|
| */
|
|
|
| -#ifndef WEBRTC_BASE_PROXYINFO_H__
|
| -#define WEBRTC_BASE_PROXYINFO_H__
|
| +#include "webrtc/base/proxyinfo.h"
|
|
|
| namespace rtc {
|
|
|
| -// TODO(deadbeef): Remove this; it's not used any more but it's referenced in
|
| -// some places, including chromium.
|
| -enum ProxyType {
|
| - PROXY_NONE,
|
| -};
|
| +const char * ProxyToString(ProxyType proxy) {
|
| + const char * const PROXY_NAMES[] = { "none", "https", "socks5", "unknown" };
|
| + return PROXY_NAMES[proxy];
|
| +}
|
|
|
| -struct ProxyInfo {
|
| -};
|
| +ProxyInfo::ProxyInfo() : type(PROXY_NONE), autodetect(false) {
|
| +}
|
| +ProxyInfo::~ProxyInfo() = default;
|
|
|
| } // namespace rtc
|
| -
|
| -#endif // WEBRTC_BASE_PROXYINFO_H__
|
|
|