OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2009 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2009 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 #ifndef WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ | 11 #ifndef WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ |
12 #define WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ | 12 #define WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ |
13 | 13 |
14 #include <map> | 14 #include <map> |
| 15 #include <memory> |
15 #include <string> | 16 #include <string> |
16 #include <vector> | 17 #include <vector> |
17 | 18 |
18 #include "webrtc/p2p/base/candidatepairinterface.h" | 19 #include "webrtc/p2p/base/candidatepairinterface.h" |
19 #include "webrtc/p2p/base/transport.h" | 20 #include "webrtc/p2p/base/transport.h" |
20 #include "webrtc/p2p/base/transportchannel.h" | 21 #include "webrtc/p2p/base/transportchannel.h" |
21 #include "webrtc/p2p/base/transportcontroller.h" | 22 #include "webrtc/p2p/base/transportcontroller.h" |
22 #include "webrtc/p2p/base/transportchannelimpl.h" | 23 #include "webrtc/p2p/base/transportchannelimpl.h" |
23 #include "webrtc/base/bind.h" | 24 #include "webrtc/base/bind.h" |
24 #include "webrtc/base/buffer.h" | 25 #include "webrtc/base/buffer.h" |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 } | 254 } |
254 return false; | 255 return false; |
255 } | 256 } |
256 | 257 |
257 bool GetSslCipherSuite(int* cipher_suite) override { return false; } | 258 bool GetSslCipherSuite(int* cipher_suite) override { return false; } |
258 | 259 |
259 rtc::scoped_refptr<rtc::RTCCertificate> GetLocalCertificate() const { | 260 rtc::scoped_refptr<rtc::RTCCertificate> GetLocalCertificate() const { |
260 return local_cert_; | 261 return local_cert_; |
261 } | 262 } |
262 | 263 |
263 rtc::scoped_ptr<rtc::SSLCertificate> GetRemoteSSLCertificate() | 264 std::unique_ptr<rtc::SSLCertificate> GetRemoteSSLCertificate() |
264 const override { | 265 const override { |
265 return remote_cert_ ? rtc::scoped_ptr<rtc::SSLCertificate>( | 266 return remote_cert_ ? std::unique_ptr<rtc::SSLCertificate>( |
266 remote_cert_->GetReference()) | 267 remote_cert_->GetReference()) |
267 : nullptr; | 268 : nullptr; |
268 } | 269 } |
269 | 270 |
270 bool ExportKeyingMaterial(const std::string& label, | 271 bool ExportKeyingMaterial(const std::string& label, |
271 const uint8_t* context, | 272 const uint8_t* context, |
272 size_t context_len, | 273 size_t context_len, |
273 bool use_context, | 274 bool use_context, |
274 uint8_t* result, | 275 uint8_t* result, |
275 size_t result_len) override { | 276 size_t result_len) override { |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 } | 572 } |
572 } | 573 } |
573 | 574 |
574 private: | 575 private: |
575 bool fail_create_channel_; | 576 bool fail_create_channel_; |
576 }; | 577 }; |
577 | 578 |
578 } // namespace cricket | 579 } // namespace cricket |
579 | 580 |
580 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ | 581 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ |
OLD | NEW |