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

Side by Side Diff: webrtc/p2p/base/transport.cc

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/p2p/base/transport.h ('k') | webrtc/p2p/base/transportchannel.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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 RTC_DCHECK(channels_destroyed_); 70 RTC_DCHECK(channels_destroyed_);
71 } 71 }
72 72
73 void Transport::SetIceRole(IceRole role) { 73 void Transport::SetIceRole(IceRole role) {
74 ice_role_ = role; 74 ice_role_ = role;
75 for (const auto& kv : channels_) { 75 for (const auto& kv : channels_) {
76 kv.second->SetIceRole(ice_role_); 76 kv.second->SetIceRole(ice_role_);
77 } 77 }
78 } 78 }
79 79
80 bool Transport::GetRemoteSSLCertificate(rtc::SSLCertificate** cert) { 80 rtc::scoped_ptr<rtc::SSLCertificate> Transport::GetRemoteSSLCertificate() {
81 if (channels_.empty()) { 81 if (channels_.empty()) {
82 return false; 82 return nullptr;
83 } 83 }
84 84
85 auto iter = channels_.begin(); 85 auto iter = channels_.begin();
86 return iter->second->GetRemoteSSLCertificate(cert); 86 return iter->second->GetRemoteSSLCertificate();
87 } 87 }
88 88
89 void Transport::SetIceConfig(const IceConfig& config) { 89 void Transport::SetIceConfig(const IceConfig& config) {
90 ice_config_ = config; 90 ice_config_ = config;
91 for (const auto& kv : channels_) { 91 for (const auto& kv : channels_) {
92 kv.second->SetIceConfig(ice_config_); 92 kv.second->SetIceConfig(ice_config_);
93 } 93 }
94 } 94 }
95 95
96 bool Transport::SetLocalTransportDescription( 96 bool Transport::SetLocalTransportDescription(
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 // negotiation happens. 408 // negotiation happens.
409 for (const auto& kv : channels_) { 409 for (const auto& kv : channels_) {
410 if (!ApplyNegotiatedTransportDescription(kv.second, error_desc)) { 410 if (!ApplyNegotiatedTransportDescription(kv.second, error_desc)) {
411 return false; 411 return false;
412 } 412 }
413 } 413 }
414 return true; 414 return true;
415 } 415 }
416 416
417 } // namespace cricket 417 } // namespace cricket
OLDNEW
« no previous file with comments | « webrtc/p2p/base/transport.h ('k') | webrtc/p2p/base/transportchannel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698