blob: 708c332ae986fb0557a048fb0272561e4a53c379 [file] [log] [blame]
henrike@webrtc.orgf0488722014-05-13 18:00:26 +00001/*
2 * Copyright 2007 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
11#ifndef _PROXYDETECT_H_
12#define _PROXYDETECT_H_
13
14#include "webrtc/base/proxyinfo.h"
15
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000016namespace rtc {
17// Auto-detect the proxy server. Returns true if a proxy is configured,
18// although hostname may be empty if the proxy is not required for
19// the given URL.
20
21bool GetProxySettingsForUrl(const char* agent, const char* url,
22 rtc::ProxyInfo* proxy,
23 bool long_operation = false);
24
25} // namespace rtc
26
27#endif // _PROXYDETECT_H_