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

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

Issue 1353713002: Remove GICE (again). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Undo .gclient 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/transportdescription.h ('k') | webrtc/p2p/base/transportdescriptionfactory.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 21 matching lines...) Expand all
32 class TransportDescriptionFactory { 32 class TransportDescriptionFactory {
33 public: 33 public:
34 // Default ctor; use methods below to set configuration. 34 // Default ctor; use methods below to set configuration.
35 TransportDescriptionFactory(); 35 TransportDescriptionFactory();
36 SecurePolicy secure() const { return secure_; } 36 SecurePolicy secure() const { return secure_; }
37 // The certificate to use when setting up DTLS. 37 // The certificate to use when setting up DTLS.
38 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate() const { 38 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate() const {
39 return certificate_; 39 return certificate_;
40 } 40 }
41 41
42 // Specifies the transport protocol to be use.
43 void set_protocol(TransportProtocol protocol) { protocol_ = protocol; }
44 // Specifies the transport security policy to use. 42 // Specifies the transport security policy to use.
45 void set_secure(SecurePolicy s) { secure_ = s; } 43 void set_secure(SecurePolicy s) { secure_ = s; }
46 // Specifies the certificate to use (only used when secure != SEC_DISABLED). 44 // Specifies the certificate to use (only used when secure != SEC_DISABLED).
47 void set_certificate( 45 void set_certificate(
48 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) { 46 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) {
49 certificate_ = certificate; 47 certificate_ = certificate;
50 } 48 }
51 49
52 // Creates a transport description suitable for use in an offer. 50 // Creates a transport description suitable for use in an offer.
53 TransportDescription* CreateOffer(const TransportOptions& options, 51 TransportDescription* CreateOffer(const TransportOptions& options,
54 const TransportDescription* current_description) const; 52 const TransportDescription* current_description) const;
55 // Create a transport description that is a response to an offer. 53 // Create a transport description that is a response to an offer.
56 TransportDescription* CreateAnswer( 54 TransportDescription* CreateAnswer(
57 const TransportDescription* offer, 55 const TransportDescription* offer,
58 const TransportOptions& options, 56 const TransportOptions& options,
59 const TransportDescription* current_description) const; 57 const TransportDescription* current_description) const;
60 58
61 private: 59 private:
62 bool SetSecurityInfo(TransportDescription* description, 60 bool SetSecurityInfo(TransportDescription* description,
63 ConnectionRole role) const; 61 ConnectionRole role) const;
64 62
65 TransportProtocol protocol_;
66 SecurePolicy secure_; 63 SecurePolicy secure_;
67 rtc::scoped_refptr<rtc::RTCCertificate> certificate_; 64 rtc::scoped_refptr<rtc::RTCCertificate> certificate_;
68 }; 65 };
69 66
70 } // namespace cricket 67 } // namespace cricket
71 68
72 #endif // WEBRTC_P2P_BASE_TRANSPORTDESCRIPTIONFACTORY_H_ 69 #endif // WEBRTC_P2P_BASE_TRANSPORTDESCRIPTIONFACTORY_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/transportdescription.h ('k') | webrtc/p2p/base/transportdescriptionfactory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698