OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2007 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2007 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef _PROXYDETECT_H_ | 11 #ifndef _PROXYDETECT_H_ |
12 #define _PROXYDETECT_H_ | 12 #define _PROXYDETECT_H_ |
13 | 13 |
14 #include "webrtc/base/proxyinfo.h" | 14 #include "webrtc/base/proxyinfo.h" |
15 | 15 |
16 #ifdef HAVE_CONFIG_H | |
17 #include "config.h" | |
18 #endif | |
19 | |
20 namespace rtc { | 16 namespace rtc { |
21 // Auto-detect the proxy server. Returns true if a proxy is configured, | 17 // Auto-detect the proxy server. Returns true if a proxy is configured, |
22 // although hostname may be empty if the proxy is not required for | 18 // although hostname may be empty if the proxy is not required for |
23 // the given URL. | 19 // the given URL. |
24 | 20 |
25 bool GetProxySettingsForUrl(const char* agent, const char* url, | 21 bool GetProxySettingsForUrl(const char* agent, const char* url, |
26 rtc::ProxyInfo* proxy, | 22 rtc::ProxyInfo* proxy, |
27 bool long_operation = false); | 23 bool long_operation = false); |
28 | 24 |
29 } // namespace rtc | 25 } // namespace rtc |
30 | 26 |
31 #endif // _PROXYDETECT_H_ | 27 #endif // _PROXYDETECT_H_ |
OLD | NEW |