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

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

Issue 1802013002: A bunch of interfaces: Return scoped_ptr<SSLCertificate> (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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
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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 virtual bool GetSrtpCryptoSuite(int* cipher) { return false; } 121 virtual bool GetSrtpCryptoSuite(int* cipher) { return false; }
122 122
123 // Finds out which DTLS cipher was negotiated. 123 // Finds out which DTLS cipher was negotiated.
124 // TODO(guoweis): Remove this once all dependencies implement this. 124 // TODO(guoweis): Remove this once all dependencies implement this.
125 virtual bool GetSslCipherSuite(int* cipher) { return false; } 125 virtual bool GetSslCipherSuite(int* cipher) { return false; }
126 126
127 // Gets the local RTCCertificate used for DTLS. 127 // Gets the local RTCCertificate used for DTLS.
128 virtual rtc::scoped_refptr<rtc::RTCCertificate> 128 virtual rtc::scoped_refptr<rtc::RTCCertificate>
129 GetLocalCertificate() const = 0; 129 GetLocalCertificate() const = 0;
130 130
131 // Gets a copy of the remote side's SSL certificate, owned by the caller. 131 // Gets a copy of the remote side's SSL certificate.
132 virtual bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const = 0; 132 virtual rtc::scoped_ptr<rtc::SSLCertificate> GetRemoteSSLCertificate()
133 const = 0;
133 134
134 // Allows key material to be extracted for external encryption. 135 // Allows key material to be extracted for external encryption.
135 virtual bool ExportKeyingMaterial(const std::string& label, 136 virtual bool ExportKeyingMaterial(const std::string& label,
136 const uint8_t* context, 137 const uint8_t* context,
137 size_t context_len, 138 size_t context_len,
138 bool use_context, 139 bool use_context,
139 uint8_t* result, 140 uint8_t* result,
140 size_t result_len) = 0; 141 size_t result_len) = 0;
141 142
142 // Signalled each time a packet is received on this channel. 143 // Signalled each time a packet is received on this channel.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 bool writable_; 175 bool writable_;
175 bool receiving_; 176 bool receiving_;
176 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW; 177 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW;
177 178
178 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel); 179 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel);
179 }; 180 };
180 181
181 } // namespace cricket 182 } // namespace cricket
182 183
183 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ 184 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698