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 |
11 #include <memory> | 11 #include <memory> |
12 | 12 |
13 #if defined(WEBRTC_WIN) | 13 #if defined(WEBRTC_WIN) |
14 #include "webrtc/base/win32.h" | 14 #include "webrtc/rtc_base/win32.h" |
15 #else // !WEBRTC_WIN | 15 #else // !WEBRTC_WIN |
16 #define SEC_E_CERT_EXPIRED (-2146893016) | 16 #define SEC_E_CERT_EXPIRED (-2146893016) |
17 #endif // !WEBRTC_WIN | 17 #endif // !WEBRTC_WIN |
18 | 18 |
19 #include "webrtc/base/checks.h" | 19 #include "webrtc/rtc_base/checks.h" |
20 #include "webrtc/base/httpbase.h" | 20 #include "webrtc/rtc_base/httpbase.h" |
21 #include "webrtc/base/logging.h" | 21 #include "webrtc/rtc_base/logging.h" |
22 #include "webrtc/base/socket.h" | 22 #include "webrtc/rtc_base/socket.h" |
23 #include "webrtc/base/stringutils.h" | 23 #include "webrtc/rtc_base/stringutils.h" |
24 #include "webrtc/base/thread.h" | 24 #include "webrtc/rtc_base/thread.h" |
25 | 25 |
26 namespace rtc { | 26 namespace rtc { |
27 | 27 |
28 ////////////////////////////////////////////////////////////////////// | 28 ////////////////////////////////////////////////////////////////////// |
29 // Helpers | 29 // Helpers |
30 ////////////////////////////////////////////////////////////////////// | 30 ////////////////////////////////////////////////////////////////////// |
31 | 31 |
32 bool MatchHeader(const char* str, size_t len, HttpHeader header) { | 32 bool MatchHeader(const char* str, size_t len, HttpHeader header) { |
33 const char* const header_str = ToString(header); | 33 const char* const header_str = ToString(header); |
34 const size_t header_len = strlen(header_str); | 34 const size_t header_len = strlen(header_str); |
(...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
877 } | 877 } |
878 } | 878 } |
879 | 879 |
880 void | 880 void |
881 HttpBase::OnComplete(HttpError err) { | 881 HttpBase::OnComplete(HttpError err) { |
882 LOG_F(LS_VERBOSE); | 882 LOG_F(LS_VERBOSE); |
883 do_complete(err); | 883 do_complete(err); |
884 } | 884 } |
885 | 885 |
886 } // namespace rtc | 886 } // namespace rtc |
OLD | NEW |