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

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

Issue 1337673002: Change WebRTC SslCipher to be exposed as number only. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 years, 2 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 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
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 } 239 }
240 240
241 bool GetSrtpCipher(std::string* cipher) override { 241 bool GetSrtpCipher(std::string* cipher) override {
242 if (!chosen_srtp_cipher_.empty()) { 242 if (!chosen_srtp_cipher_.empty()) {
243 *cipher = chosen_srtp_cipher_; 243 *cipher = chosen_srtp_cipher_;
244 return true; 244 return true;
245 } 245 }
246 return false; 246 return false;
247 } 247 }
248 248
249 bool GetSslCipher(std::string* cipher) override { 249 bool GetSslCipher(rtc::SslCipher* cipher) override { return false; }
250 return false;
251 }
252 250
253 rtc::scoped_refptr<rtc::RTCCertificate> 251 rtc::scoped_refptr<rtc::RTCCertificate>
254 GetLocalCertificate() const override { 252 GetLocalCertificate() const override {
255 return certificate_; 253 return certificate_;
256 } 254 }
257 255
258 bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const override { 256 bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const override {
259 if (!remote_cert_) 257 if (!remote_cert_)
260 return false; 258 return false;
261 259
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 } 495 }
498 } 496 }
499 497
500 private: 498 private:
501 bool fail_create_channel_; 499 bool fail_create_channel_;
502 }; 500 };
503 501
504 } // namespace cricket 502 } // namespace cricket
505 503
506 #endif // WEBRTC_P2P_BASE_FAKESESSION_H_ 504 #endif // WEBRTC_P2P_BASE_FAKESESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698