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

Side by Side Diff: webrtc/p2p/base/transportchannel.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/transport.cc ('k') | webrtc/p2p/base/transportcontroller.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
11 #ifndef WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ 11 #ifndef WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_
12 #define WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ 12 #define WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_
13 13
14 #include <memory>
14 #include <string> 15 #include <string>
15 #include <vector> 16 #include <vector>
16 17
17 #include "webrtc/p2p/base/candidate.h" 18 #include "webrtc/p2p/base/candidate.h"
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/transportdescription.h" 21 #include "webrtc/p2p/base/transportdescription.h"
21 #include "webrtc/base/asyncpacketsocket.h" 22 #include "webrtc/base/asyncpacketsocket.h"
22 #include "webrtc/base/basictypes.h" 23 #include "webrtc/base/basictypes.h"
23 #include "webrtc/base/dscp.h" 24 #include "webrtc/base/dscp.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 124
124 // Finds out which DTLS cipher was negotiated. 125 // Finds out which DTLS cipher was negotiated.
125 // TODO(guoweis): Remove this once all dependencies implement this. 126 // TODO(guoweis): Remove this once all dependencies implement this.
126 virtual bool GetSslCipherSuite(int* cipher) { return false; } 127 virtual bool GetSslCipherSuite(int* cipher) { return false; }
127 128
128 // Gets the local RTCCertificate used for DTLS. 129 // Gets the local RTCCertificate used for DTLS.
129 virtual rtc::scoped_refptr<rtc::RTCCertificate> 130 virtual rtc::scoped_refptr<rtc::RTCCertificate>
130 GetLocalCertificate() const = 0; 131 GetLocalCertificate() const = 0;
131 132
132 // Gets a copy of the remote side's SSL certificate. 133 // Gets a copy of the remote side's SSL certificate.
133 virtual rtc::scoped_ptr<rtc::SSLCertificate> GetRemoteSSLCertificate() 134 virtual std::unique_ptr<rtc::SSLCertificate> GetRemoteSSLCertificate()
134 const = 0; 135 const = 0;
135 136
136 // Allows key material to be extracted for external encryption. 137 // Allows key material to be extracted for external encryption.
137 virtual bool ExportKeyingMaterial(const std::string& label, 138 virtual bool ExportKeyingMaterial(const std::string& label,
138 const uint8_t* context, 139 const uint8_t* context,
139 size_t context_len, 140 size_t context_len,
140 bool use_context, 141 bool use_context,
141 uint8_t* result, 142 uint8_t* result,
142 size_t result_len) = 0; 143 size_t result_len) = 0;
143 144
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 bool writable_; 185 bool writable_;
185 bool receiving_; 186 bool receiving_;
186 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW; 187 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW;
187 188
188 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel); 189 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel);
189 }; 190 };
190 191
191 } // namespace cricket 192 } // namespace cricket
192 193
193 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ 194 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/transport.cc ('k') | webrtc/p2p/base/transportcontroller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698