• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
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 
16 #ifdef HAVE_CONFIG_H
17 #include "config.h"
18 #endif
19 
20 namespace rtc {
21 // 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
23 // the given URL.
24 
25 bool GetProxySettingsForUrl(const char* agent, const char* url,
26                             rtc::ProxyInfo* proxy,
27                             bool long_operation = false);
28 
29 }  // namespace rtc
30 
31 #endif  // _PROXYDETECT_H_
32