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

Side by Side Diff: webrtc/api/webrtcsession.h

Issue 1802013002: A bunch of interfaces: Return scoped_ptr<SSLCertificate> (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: less auto Created 4 years, 8 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/api/statscollector_unittest.cc ('k') | webrtc/api/webrtcsession.cc » ('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 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2012 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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 285
286 // Get stats for a specific channel 286 // Get stats for a specific channel
287 bool GetChannelTransportStats(cricket::BaseChannel* ch, SessionStats* stats); 287 bool GetChannelTransportStats(cricket::BaseChannel* ch, SessionStats* stats);
288 288
289 // virtual so it can be mocked in unit tests 289 // virtual so it can be mocked in unit tests
290 virtual bool GetLocalCertificate( 290 virtual bool GetLocalCertificate(
291 const std::string& transport_name, 291 const std::string& transport_name,
292 rtc::scoped_refptr<rtc::RTCCertificate>* certificate); 292 rtc::scoped_refptr<rtc::RTCCertificate>* certificate);
293 293
294 // Caller owns returned certificate 294 // Caller owns returned certificate
295 virtual bool GetRemoteSSLCertificate(const std::string& transport_name, 295 virtual rtc::scoped_ptr<rtc::SSLCertificate> GetRemoteSSLCertificate(
296 rtc::SSLCertificate** cert); 296 const std::string& transport_name);
297 297
298 cricket::DataChannelType data_channel_type() const; 298 cricket::DataChannelType data_channel_type() const;
299 299
300 bool IceRestartPending(const std::string& content_name) const; 300 bool IceRestartPending(const std::string& content_name) const;
301 301
302 // Called when an RTCCertificate is generated or retrieved by 302 // Called when an RTCCertificate is generated or retrieved by
303 // WebRTCSessionDescriptionFactory. Should happen before setLocalDescription. 303 // WebRTCSessionDescriptionFactory. Should happen before setLocalDescription.
304 void OnCertificateReady( 304 void OnCertificateReady(
305 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate); 305 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate);
306 void OnDtlsSetupFailure(cricket::BaseChannel*, bool rtcp); 306 void OnDtlsSetupFailure(cricket::BaseChannel*, bool rtcp);
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 PeerConnectionInterface::BundlePolicy bundle_policy_; 513 PeerConnectionInterface::BundlePolicy bundle_policy_;
514 514
515 // Declares the RTCP mux policy for the WebRTCSession. 515 // Declares the RTCP mux policy for the WebRTCSession.
516 PeerConnectionInterface::RtcpMuxPolicy rtcp_mux_policy_; 516 PeerConnectionInterface::RtcpMuxPolicy rtcp_mux_policy_;
517 517
518 RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSession); 518 RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSession);
519 }; 519 };
520 } // namespace webrtc 520 } // namespace webrtc
521 521
522 #endif // WEBRTC_API_WEBRTCSESSION_H_ 522 #endif // WEBRTC_API_WEBRTCSESSION_H_
OLDNEW
« no previous file with comments | « webrtc/api/statscollector_unittest.cc ('k') | webrtc/api/webrtcsession.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698