henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license |
| 5 | * that can be found in the LICENSE file in the root of the source |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 11 | #ifndef RTC_BASE_PROXY_INFO_H_ |
| 12 | #define RTC_BASE_PROXY_INFO_H_ |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 13 | |
Henrik Kjellander | ec78f1c | 2017-06-29 05:52:50 | [diff] [blame] | 14 | #include <string> |
Jonas Olsson | a4d8737 | 2019-07-05 17:08:33 | [diff] [blame] | 15 | |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 16 | #include "rtc_base/crypt_string.h" |
| 17 | #include "rtc_base/socket_address.h" |
deadbeef | f137e97 | 2017-03-23 22:45:49 | [diff] [blame] | 18 | |
Henrik Kjellander | ec78f1c | 2017-06-29 05:52:50 | [diff] [blame] | 19 | namespace rtc { |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 20 | |
Yves Gerey | 665174f | 2018-06-19 13:03:05 | [diff] [blame] | 21 | enum ProxyType { PROXY_NONE, PROXY_HTTPS, PROXY_SOCKS5, PROXY_UNKNOWN }; |
| 22 | const char* ProxyToString(ProxyType proxy); |
Henrik Kjellander | ec78f1c | 2017-06-29 05:52:50 | [diff] [blame] | 23 | |
| 24 | struct ProxyInfo { |
| 25 | ProxyType type; |
| 26 | SocketAddress address; |
| 27 | std::string autoconfig_url; |
| 28 | bool autodetect; |
| 29 | std::string bypass_list; |
| 30 | std::string username; |
| 31 | CryptString password; |
| 32 | |
| 33 | ProxyInfo(); |
| 34 | ~ProxyInfo(); |
| 35 | }; |
| 36 | |
Yves Gerey | 665174f | 2018-06-19 13:03:05 | [diff] [blame] | 37 | } // namespace rtc |
Henrik Kjellander | ec78f1c | 2017-06-29 05:52:50 | [diff] [blame] | 38 | |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 39 | #endif // RTC_BASE_PROXY_INFO_H_ |