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

Side by Side Diff: webrtc/p2p/base/p2ptransportchannel.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/faketransportcontroller.h ('k') | webrtc/p2p/base/packetsocketfactory.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 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 bool GetSrtpCryptoSuite(int* cipher) override { return false; } 137 bool GetSrtpCryptoSuite(int* cipher) override { return false; }
138 138
139 // Find out which DTLS cipher was negotiated. 139 // Find out which DTLS cipher was negotiated.
140 bool GetSslCipherSuite(int* cipher) override { return false; } 140 bool GetSslCipherSuite(int* cipher) override { return false; }
141 141
142 // Returns null because the channel is not encrypted by default. 142 // Returns null because the channel is not encrypted by default.
143 rtc::scoped_refptr<rtc::RTCCertificate> GetLocalCertificate() const override { 143 rtc::scoped_refptr<rtc::RTCCertificate> GetLocalCertificate() const override {
144 return nullptr; 144 return nullptr;
145 } 145 }
146 146
147 rtc::scoped_ptr<rtc::SSLCertificate> GetRemoteSSLCertificate() 147 std::unique_ptr<rtc::SSLCertificate> GetRemoteSSLCertificate()
148 const override { 148 const override {
149 return nullptr; 149 return nullptr;
150 } 150 }
151 151
152 // Allows key material to be extracted for external encryption. 152 // Allows key material to be extracted for external encryption.
153 bool ExportKeyingMaterial(const std::string& label, 153 bool ExportKeyingMaterial(const std::string& label,
154 const uint8_t* context, 154 const uint8_t* context,
155 size_t context_len, 155 size_t context_len,
156 bool use_context, 156 bool use_context,
157 uint8_t* result, 157 uint8_t* result,
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 TransportChannelState state_ = TransportChannelState::STATE_INIT; 328 TransportChannelState state_ = TransportChannelState::STATE_INIT;
329 IceConfig config_; 329 IceConfig config_;
330 int last_sent_packet_id_ = -1; // -1 indicates no packet was sent before. 330 int last_sent_packet_id_ = -1; // -1 indicates no packet was sent before.
331 331
332 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); 332 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel);
333 }; 333 };
334 334
335 } // namespace cricket 335 } // namespace cricket
336 336
337 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ 337 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/faketransportcontroller.h ('k') | webrtc/p2p/base/packetsocketfactory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698