OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2015 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 bool GetSslRole(const std::string& transport_name, rtc::SSLRole* role); | 52 bool GetSslRole(const std::string& transport_name, rtc::SSLRole* role); |
53 | 53 |
54 // Specifies the identity to use in this session. | 54 // Specifies the identity to use in this session. |
55 // Can only be called once. | 55 // Can only be called once. |
56 bool SetLocalCertificate( | 56 bool SetLocalCertificate( |
57 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate); | 57 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate); |
58 bool GetLocalCertificate( | 58 bool GetLocalCertificate( |
59 const std::string& transport_name, | 59 const std::string& transport_name, |
60 rtc::scoped_refptr<rtc::RTCCertificate>* certificate); | 60 rtc::scoped_refptr<rtc::RTCCertificate>* certificate); |
61 // Caller owns returned certificate | 61 // Caller owns returned certificate |
62 bool GetRemoteSSLCertificate(const std::string& transport_name, | 62 rtc::scoped_ptr<rtc::SSLCertificate> GetRemoteSSLCertificate( |
63 rtc::SSLCertificate** cert); | 63 const std::string& transport_name); |
64 bool SetLocalTransportDescription(const std::string& transport_name, | 64 bool SetLocalTransportDescription(const std::string& transport_name, |
65 const TransportDescription& tdesc, | 65 const TransportDescription& tdesc, |
66 ContentAction action, | 66 ContentAction action, |
67 std::string* err); | 67 std::string* err); |
68 bool SetRemoteTransportDescription(const std::string& transport_name, | 68 bool SetRemoteTransportDescription(const std::string& transport_name, |
69 const TransportDescription& tdesc, | 69 const TransportDescription& tdesc, |
70 ContentAction action, | 70 ContentAction action, |
71 std::string* err); | 71 std::string* err); |
72 // Start gathering candidates for any new transports, or transports doing an | 72 // Start gathering candidates for any new transports, or transports doing an |
73 // ICE restart. | 73 // ICE restart. |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 | 159 |
160 bool SetSslMaxProtocolVersion_w(rtc::SSLProtocolVersion version); | 160 bool SetSslMaxProtocolVersion_w(rtc::SSLProtocolVersion version); |
161 void SetIceConfig_w(const IceConfig& config); | 161 void SetIceConfig_w(const IceConfig& config); |
162 void SetIceRole_w(IceRole ice_role); | 162 void SetIceRole_w(IceRole ice_role); |
163 bool GetSslRole_w(const std::string& transport_name, rtc::SSLRole* role); | 163 bool GetSslRole_w(const std::string& transport_name, rtc::SSLRole* role); |
164 bool SetLocalCertificate_w( | 164 bool SetLocalCertificate_w( |
165 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate); | 165 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate); |
166 bool GetLocalCertificate_w( | 166 bool GetLocalCertificate_w( |
167 const std::string& transport_name, | 167 const std::string& transport_name, |
168 rtc::scoped_refptr<rtc::RTCCertificate>* certificate); | 168 rtc::scoped_refptr<rtc::RTCCertificate>* certificate); |
169 bool GetRemoteSSLCertificate_w(const std::string& transport_name, | 169 rtc::scoped_ptr<rtc::SSLCertificate> GetRemoteSSLCertificate_w( |
170 rtc::SSLCertificate** cert); | 170 const std::string& transport_name); |
171 bool SetLocalTransportDescription_w(const std::string& transport_name, | 171 bool SetLocalTransportDescription_w(const std::string& transport_name, |
172 const TransportDescription& tdesc, | 172 const TransportDescription& tdesc, |
173 ContentAction action, | 173 ContentAction action, |
174 std::string* err); | 174 std::string* err); |
175 bool SetRemoteTransportDescription_w(const std::string& transport_name, | 175 bool SetRemoteTransportDescription_w(const std::string& transport_name, |
176 const TransportDescription& tdesc, | 176 const TransportDescription& tdesc, |
177 ContentAction action, | 177 ContentAction action, |
178 std::string* err); | 178 std::string* err); |
179 void MaybeStartGathering_w(); | 179 void MaybeStartGathering_w(); |
180 bool AddRemoteCandidates_w(const std::string& transport_name, | 180 bool AddRemoteCandidates_w(const std::string& transport_name, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 // Flag which will be set to true after the first role switch | 219 // Flag which will be set to true after the first role switch |
220 bool ice_role_switch_ = false; | 220 bool ice_role_switch_ = false; |
221 uint64_t ice_tiebreaker_ = rtc::CreateRandomId64(); | 221 uint64_t ice_tiebreaker_ = rtc::CreateRandomId64(); |
222 rtc::scoped_refptr<rtc::RTCCertificate> certificate_; | 222 rtc::scoped_refptr<rtc::RTCCertificate> certificate_; |
223 rtc::AsyncInvoker invoker_; | 223 rtc::AsyncInvoker invoker_; |
224 }; | 224 }; |
225 | 225 |
226 } // namespace cricket | 226 } // namespace cricket |
227 | 227 |
228 #endif // WEBRTC_P2P_BASE_TRANSPORTCONTROLLER_H_ | 228 #endif // WEBRTC_P2P_BASE_TRANSPORTCONTROLLER_H_ |
OLD | NEW |