Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(484)

Side by Side Diff: webrtc/p2p/base/faketransportcontroller.h

Issue 1920043002: Replace scoped_ptr with unique_ptr in webrtc/base/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/p2p/base/dtlstransportchannel_unittest.cc ('k') | webrtc/p2p/base/p2ptransportchannel.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/dtlstransportchannel_unittest.cc ('k') | webrtc/p2p/base/p2ptransportchannel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698