| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 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 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include <map> | 31 #include <map> |
| 32 #include <memory> | 32 #include <memory> |
| 33 | 33 |
| 34 #include "webrtc/base/arraysize.h" | 34 #include "webrtc/base/arraysize.h" |
| 35 #include "webrtc/base/fileutils.h" | 35 #include "webrtc/base/fileutils.h" |
| 36 #include "webrtc/base/httpcommon.h" | 36 #include "webrtc/base/httpcommon.h" |
| 37 #include "webrtc/base/httpcommon-inl.h" | 37 #include "webrtc/base/httpcommon-inl.h" |
| 38 #include "webrtc/base/pathutils.h" | 38 #include "webrtc/base/pathutils.h" |
| 39 #include "webrtc/base/stringutils.h" | 39 #include "webrtc/base/stringutils.h" |
| 40 | 40 |
| 41 #define _TRY_JSPROXY 0 |
| 42 #define _TRY_WM_FINDPROXY 0 |
| 43 |
| 41 #if defined(WEBRTC_WIN) | 44 #if defined(WEBRTC_WIN) |
| 42 #define _TRY_WINHTTP 1 | 45 #define _TRY_WINHTTP 1 |
| 43 #define _TRY_JSPROXY 0 | |
| 44 #define _TRY_WM_FINDPROXY 0 | |
| 45 #define _TRY_IE_LAN_SETTINGS 1 | 46 #define _TRY_IE_LAN_SETTINGS 1 |
| 47 #else |
| 48 #define _TRY_WINHTTP 0 |
| 49 #define _TRY_IE_LAN_SETTINGS 0 |
| 46 #endif // WEBRTC_WIN | 50 #endif // WEBRTC_WIN |
| 47 | 51 |
| 48 // For all platforms try Firefox. | 52 // For all platforms try Firefox. |
| 49 #define _TRY_FIREFOX 1 | 53 #define _TRY_FIREFOX 1 |
| 50 | 54 |
| 51 // Use profiles.ini to find the correct profile for this user. | 55 // Use profiles.ini to find the correct profile for this user. |
| 52 // If not set, we'll just look for the default one. | 56 // If not set, we'll just look for the default one. |
| 53 #define USE_FIREFOX_PROFILES_INI 1 | 57 #define USE_FIREFOX_PROFILES_INI 1 |
| 54 | 58 |
| 55 static const size_t kMaxLineLength = 1024; | 59 static const size_t kMaxLineLength = 1024; |
| (...skipping 1230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1286 if (!result) { | 1290 if (!result) { |
| 1287 // Either auto detection is not supported or we simply didn't | 1291 // Either auto detection is not supported or we simply didn't |
| 1288 // find any proxy, reset type. | 1292 // find any proxy, reset type. |
| 1289 proxy->type = rtc::PROXY_NONE; | 1293 proxy->type = rtc::PROXY_NONE; |
| 1290 } | 1294 } |
| 1291 } | 1295 } |
| 1292 return result; | 1296 return result; |
| 1293 } | 1297 } |
| 1294 | 1298 |
| 1295 } // namespace rtc | 1299 } // namespace rtc |
| OLD | NEW |