| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2016 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 "webrtc/p2p/quic/quictransport.h" | 11 #include "webrtc/p2p/quic/quictransport.h" |
| 12 | 12 |
| 13 #include "webrtc/base/checks.h" |
| 13 #include "webrtc/p2p/base/p2ptransportchannel.h" | 14 #include "webrtc/p2p/base/p2ptransportchannel.h" |
| 14 #include "webrtc/rtc_base/checks.h" | |
| 15 | 15 |
| 16 namespace cricket { | 16 namespace cricket { |
| 17 | 17 |
| 18 QuicTransport::QuicTransport( | 18 QuicTransport::QuicTransport( |
| 19 const std::string& name, | 19 const std::string& name, |
| 20 PortAllocator* allocator, | 20 PortAllocator* allocator, |
| 21 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) | 21 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) |
| 22 : Transport(name, allocator), local_certificate_(certificate) {} | 22 : Transport(name, allocator), local_certificate_(certificate) {} |
| 23 | 23 |
| 24 QuicTransport::~QuicTransport() { | 24 QuicTransport::~QuicTransport() { |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 remote_fingerprint_->algorithm, | 106 remote_fingerprint_->algorithm, |
| 107 reinterpret_cast<const uint8_t*>(remote_fingerprint_->digest.data()), | 107 reinterpret_cast<const uint8_t*>(remote_fingerprint_->digest.data()), |
| 108 remote_fingerprint_->digest.size())) { | 108 remote_fingerprint_->digest.size())) { |
| 109 return BadTransportDescription("Failed to apply remote fingerprint.", | 109 return BadTransportDescription("Failed to apply remote fingerprint.", |
| 110 error_desc); | 110 error_desc); |
| 111 } | 111 } |
| 112 return Transport::ApplyNegotiatedTransportDescription(channel, error_desc); | 112 return Transport::ApplyNegotiatedTransportDescription(channel, error_desc); |
| 113 } | 113 } |
| 114 | 114 |
| 115 } // namespace cricket | 115 } // namespace cricket |
| OLD | NEW |