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

Side by Side Diff: webrtc/p2p/base/transport.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/p2p/base/p2ptransportchannel.h ('k') | webrtc/p2p/base/transport.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 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 virtual void SetLocalCertificate( 207 virtual void SetLocalCertificate(
208 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) {} 208 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) {}
209 209
210 // Get a copy of the local certificate provided by SetLocalCertificate. 210 // Get a copy of the local certificate provided by SetLocalCertificate.
211 virtual bool GetLocalCertificate( 211 virtual bool GetLocalCertificate(
212 rtc::scoped_refptr<rtc::RTCCertificate>* certificate) { 212 rtc::scoped_refptr<rtc::RTCCertificate>* certificate) {
213 return false; 213 return false;
214 } 214 }
215 215
216 // Get a copy of the remote certificate in use by the specified channel. 216 // Get a copy of the remote certificate in use by the specified channel.
217 bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert); 217 rtc::scoped_ptr<rtc::SSLCertificate> GetRemoteSSLCertificate();
218 218
219 // Create, destroy, and lookup the channels of this type by their components. 219 // Create, destroy, and lookup the channels of this type by their components.
220 TransportChannelImpl* CreateChannel(int component); 220 TransportChannelImpl* CreateChannel(int component);
221 221
222 TransportChannelImpl* GetChannel(int component); 222 TransportChannelImpl* GetChannel(int component);
223 223
224 bool HasChannel(int component) { 224 bool HasChannel(int component) {
225 return (NULL != GetChannel(component)); 225 return (NULL != GetChannel(component));
226 } 226 }
227 bool HasChannels(); 227 bool HasChannels();
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 340
341 ChannelMap channels_; 341 ChannelMap channels_;
342 342
343 RTC_DISALLOW_COPY_AND_ASSIGN(Transport); 343 RTC_DISALLOW_COPY_AND_ASSIGN(Transport);
344 }; 344 };
345 345
346 346
347 } // namespace cricket 347 } // namespace cricket
348 348
349 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_ 349 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/p2ptransportchannel.h ('k') | webrtc/p2p/base/transport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698