| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2011 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 // the bottom and a StreamInterface on the top. | 27 // the bottom and a StreamInterface on the top. |
| 28 class StreamInterfaceChannel : public rtc::StreamInterface { | 28 class StreamInterfaceChannel : public rtc::StreamInterface { |
| 29 public: | 29 public: |
| 30 explicit StreamInterfaceChannel(TransportChannel* channel); | 30 explicit StreamInterfaceChannel(TransportChannel* channel); |
| 31 | 31 |
| 32 // Push in a packet; this gets pulled out from Read(). | 32 // Push in a packet; this gets pulled out from Read(). |
| 33 bool OnPacketReceived(const char* data, size_t size); | 33 bool OnPacketReceived(const char* data, size_t size); |
| 34 | 34 |
| 35 // Implementations of StreamInterface | 35 // Implementations of StreamInterface |
| 36 rtc::StreamState GetState() const override { return state_; } | 36 rtc::StreamState GetState() const override { return state_; } |
| 37 void Close() override { state_ = rtc::SS_CLOSED; } | 37 void Close() override; |
| 38 rtc::StreamResult Read(void* buffer, | 38 rtc::StreamResult Read(void* buffer, |
| 39 size_t buffer_len, | 39 size_t buffer_len, |
| 40 size_t* read, | 40 size_t* read, |
| 41 int* error) override; | 41 int* error) override; |
| 42 rtc::StreamResult Write(const void* data, | 42 rtc::StreamResult Write(const void* data, |
| 43 size_t data_len, | 43 size_t data_len, |
| 44 size_t* written, | 44 size_t* written, |
| 45 int* error) override; | 45 int* error) override; |
| 46 | 46 |
| 47 private: | 47 private: |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 rtc::SSLProtocolVersion ssl_max_version_; | 231 rtc::SSLProtocolVersion ssl_max_version_; |
| 232 rtc::Buffer remote_fingerprint_value_; | 232 rtc::Buffer remote_fingerprint_value_; |
| 233 std::string remote_fingerprint_algorithm_; | 233 std::string remote_fingerprint_algorithm_; |
| 234 | 234 |
| 235 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper); | 235 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper); |
| 236 }; | 236 }; |
| 237 | 237 |
| 238 } // namespace cricket | 238 } // namespace cricket |
| 239 | 239 |
| 240 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_ | 240 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_ |
| OLD | NEW |