| 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 16 matching lines...) Expand all Loading... |
| 27 #include <algorithm> | 27 #include <algorithm> |
| 28 | 28 |
| 29 #include "webrtc/base/bytebuffer.h" | 29 #include "webrtc/base/bytebuffer.h" |
| 30 #include "webrtc/base/common.h" | 30 #include "webrtc/base/common.h" |
| 31 #include "webrtc/base/httpcommon.h" | 31 #include "webrtc/base/httpcommon.h" |
| 32 #include "webrtc/base/logging.h" | 32 #include "webrtc/base/logging.h" |
| 33 #include "webrtc/base/socketadapters.h" | 33 #include "webrtc/base/socketadapters.h" |
| 34 #include "webrtc/base/stringencode.h" | 34 #include "webrtc/base/stringencode.h" |
| 35 #include "webrtc/base/stringutils.h" | 35 #include "webrtc/base/stringutils.h" |
| 36 | 36 |
| 37 #if defined(WEBRTC_WIN) | |
| 38 #include "webrtc/base/sec_buffer.h" | |
| 39 #endif // WEBRTC_WIN | |
| 40 | |
| 41 namespace rtc { | 37 namespace rtc { |
| 42 | 38 |
| 43 BufferedReadAdapter::BufferedReadAdapter(AsyncSocket* socket, size_t size) | 39 BufferedReadAdapter::BufferedReadAdapter(AsyncSocket* socket, size_t size) |
| 44 : AsyncSocketAdapter(socket), buffer_size_(size), | 40 : AsyncSocketAdapter(socket), buffer_size_(size), |
| 45 data_len_(0), buffering_(false) { | 41 data_len_(0), buffering_(false) { |
| 46 buffer_ = new char[buffer_size_]; | 42 buffer_ = new char[buffer_size_]; |
| 47 } | 43 } |
| 48 | 44 |
| 49 BufferedReadAdapter::~BufferedReadAdapter() { | 45 BufferedReadAdapter::~BufferedReadAdapter() { |
| 50 delete [] buffer_; | 46 delete [] buffer_; |
| (...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 907 void LoggingSocketAdapter::OnCloseEvent(AsyncSocket * socket, int err) { | 903 void LoggingSocketAdapter::OnCloseEvent(AsyncSocket * socket, int err) { |
| 908 LogMultiline(level_, label_.c_str(), false, NULL, 0, hex_mode_, &lms_); | 904 LogMultiline(level_, label_.c_str(), false, NULL, 0, hex_mode_, &lms_); |
| 909 LogMultiline(level_, label_.c_str(), true, NULL, 0, hex_mode_, &lms_); | 905 LogMultiline(level_, label_.c_str(), true, NULL, 0, hex_mode_, &lms_); |
| 910 LOG_V(level_) << label_ << " Closed with error: " << err; | 906 LOG_V(level_) << label_ << " Closed with error: " << err; |
| 911 AsyncSocketAdapter::OnCloseEvent(socket, err); | 907 AsyncSocketAdapter::OnCloseEvent(socket, err); |
| 912 } | 908 } |
| 913 | 909 |
| 914 /////////////////////////////////////////////////////////////////////////////// | 910 /////////////////////////////////////////////////////////////////////////////// |
| 915 | 911 |
| 916 } // namespace rtc | 912 } // namespace rtc |
| OLD | NEW |