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

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

Issue 1304043008: Replacing SSLIdentity* with scoped_refptr<RTCCertificate> in TransportChannel layer (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Making overriding "virtual" methods use the override keyword Created 5 years, 3 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/transportchannelimpl.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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 // Sets up the ciphers to use for DTLS-SRTP. 102 // Sets up the ciphers to use for DTLS-SRTP.
103 virtual bool SetSrtpCiphers(const std::vector<std::string>& ciphers) = 0; 103 virtual bool SetSrtpCiphers(const std::vector<std::string>& ciphers) = 0;
104 104
105 // Finds out which DTLS-SRTP cipher was negotiated. 105 // Finds out which DTLS-SRTP cipher was negotiated.
106 virtual bool GetSrtpCipher(std::string* cipher) = 0; 106 virtual bool GetSrtpCipher(std::string* cipher) = 0;
107 107
108 // Finds out which DTLS cipher was negotiated. 108 // Finds out which DTLS cipher was negotiated.
109 virtual bool GetSslCipher(std::string* cipher) = 0; 109 virtual bool GetSslCipher(std::string* cipher) = 0;
110 110
111 // Gets a copy of the local SSL identity, owned by the caller. 111 // Gets the local RTCCertificate used for DTLS.
112 virtual bool GetLocalIdentity(rtc::SSLIdentity** identity) const = 0; 112 virtual rtc::scoped_refptr<rtc::RTCCertificate>
113 GetLocalCertificate() const = 0;
113 114
114 // Gets a copy of the remote side's SSL certificate, owned by the caller. 115 // Gets a copy of the remote side's SSL certificate, owned by the caller.
115 virtual bool GetRemoteCertificate(rtc::SSLCertificate** cert) const = 0; 116 virtual bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const = 0;
116 117
117 // Allows key material to be extracted for external encryption. 118 // Allows key material to be extracted for external encryption.
118 virtual bool ExportKeyingMaterial(const std::string& label, 119 virtual bool ExportKeyingMaterial(const std::string& label,
119 const uint8* context, 120 const uint8* context,
120 size_t context_len, 121 size_t context_len,
121 bool use_context, 122 bool use_context,
122 uint8* result, 123 uint8* result,
123 size_t result_len) = 0; 124 size_t result_len) = 0;
124 125
125 // Signalled each time a packet is received on this channel. 126 // Signalled each time a packet is received on this channel.
(...skipping 29 matching lines...) Expand all
155 bool readable_; 156 bool readable_;
156 bool writable_; 157 bool writable_;
157 bool receiving_; 158 bool receiving_;
158 159
159 DISALLOW_COPY_AND_ASSIGN(TransportChannel); 160 DISALLOW_COPY_AND_ASSIGN(TransportChannel);
160 }; 161 };
161 162
162 } // namespace cricket 163 } // namespace cricket
163 164
164 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ 165 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/transport.cc ('k') | webrtc/p2p/base/transportchannelimpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698