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

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

Issue 1362503003: Use suffixed {uint,int}{8,16,32,64}_t types. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase + revert basictypes.h (to be landed separately just in case of a revert due to unexpected us… Created 5 years, 2 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/dtlstransport.h ('k') | webrtc/p2p/base/dtlstransportchannel.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 2011 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2011 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 TransportChannelImpl* channel); 97 TransportChannelImpl* channel);
98 ~DtlsTransportChannelWrapper() override; 98 ~DtlsTransportChannelWrapper() override;
99 99
100 void SetIceRole(IceRole role) override { channel_->SetIceRole(role); } 100 void SetIceRole(IceRole role) override { channel_->SetIceRole(role); }
101 IceRole GetIceRole() const override { return channel_->GetIceRole(); } 101 IceRole GetIceRole() const override { return channel_->GetIceRole(); }
102 bool SetLocalCertificate( 102 bool SetLocalCertificate(
103 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) override; 103 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) override;
104 rtc::scoped_refptr<rtc::RTCCertificate> GetLocalCertificate() const override; 104 rtc::scoped_refptr<rtc::RTCCertificate> GetLocalCertificate() const override;
105 105
106 bool SetRemoteFingerprint(const std::string& digest_alg, 106 bool SetRemoteFingerprint(const std::string& digest_alg,
107 const uint8* digest, 107 const uint8_t* digest,
108 size_t digest_len) override; 108 size_t digest_len) override;
109 bool IsDtlsActive() const override { return dtls_state_ != STATE_NONE; } 109 bool IsDtlsActive() const override { return dtls_state_ != STATE_NONE; }
110 110
111 // Called to send a packet (via DTLS, if turned on). 111 // Called to send a packet (via DTLS, if turned on).
112 int SendPacket(const char* data, 112 int SendPacket(const char* data,
113 size_t size, 113 size_t size,
114 const rtc::PacketOptions& options, 114 const rtc::PacketOptions& options,
115 int flags) override; 115 int flags) override;
116 116
117 // TransportChannel calls that we forward to the wrapped transport. 117 // TransportChannel calls that we forward to the wrapped transport.
(...skipping 27 matching lines...) Expand all
145 145
146 // Once DTLS has been established, this method retrieves the certificate in 146 // Once DTLS has been established, this method retrieves the certificate in
147 // use by the remote peer, for use in external identity verification. 147 // use by the remote peer, for use in external identity verification.
148 bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const override; 148 bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const override;
149 149
150 // Once DTLS has established (i.e., this channel is writable), this method 150 // Once DTLS has established (i.e., this channel is writable), this method
151 // extracts the keys negotiated during the DTLS handshake, for use in external 151 // extracts the keys negotiated during the DTLS handshake, for use in external
152 // encryption. DTLS-SRTP uses this to extract the needed SRTP keys. 152 // encryption. DTLS-SRTP uses this to extract the needed SRTP keys.
153 // See the SSLStreamAdapter documentation for info on the specific parameters. 153 // See the SSLStreamAdapter documentation for info on the specific parameters.
154 bool ExportKeyingMaterial(const std::string& label, 154 bool ExportKeyingMaterial(const std::string& label,
155 const uint8* context, 155 const uint8_t* context,
156 size_t context_len, 156 size_t context_len,
157 bool use_context, 157 bool use_context,
158 uint8* result, 158 uint8_t* result,
159 size_t result_len) override { 159 size_t result_len) override {
160 return (dtls_.get()) ? dtls_->ExportKeyingMaterial(label, context, 160 return (dtls_.get()) ? dtls_->ExportKeyingMaterial(label, context,
161 context_len, 161 context_len,
162 use_context, 162 use_context,
163 result, result_len) 163 result, result_len)
164 : false; 164 : false;
165 } 165 }
166 166
167 // TransportChannelImpl calls. 167 // TransportChannelImpl calls.
168 Transport* GetTransport() override { return transport_; } 168 Transport* GetTransport() override { return transport_; }
169 169
170 TransportChannelState GetState() const override { 170 TransportChannelState GetState() const override {
171 return channel_->GetState(); 171 return channel_->GetState();
172 } 172 }
173 void SetIceTiebreaker(uint64 tiebreaker) override { 173 void SetIceTiebreaker(uint64_t tiebreaker) override {
174 channel_->SetIceTiebreaker(tiebreaker); 174 channel_->SetIceTiebreaker(tiebreaker);
175 } 175 }
176 void SetIceCredentials(const std::string& ice_ufrag, 176 void SetIceCredentials(const std::string& ice_ufrag,
177 const std::string& ice_pwd) override { 177 const std::string& ice_pwd) override {
178 channel_->SetIceCredentials(ice_ufrag, ice_pwd); 178 channel_->SetIceCredentials(ice_ufrag, ice_pwd);
179 } 179 }
180 void SetRemoteIceCredentials(const std::string& ice_ufrag, 180 void SetRemoteIceCredentials(const std::string& ice_ufrag,
181 const std::string& ice_pwd) override { 181 const std::string& ice_pwd) override {
182 channel_->SetRemoteIceCredentials(ice_ufrag, ice_pwd); 182 channel_->SetRemoteIceCredentials(ice_ufrag, ice_pwd);
183 } 183 }
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 rtc::SSLProtocolVersion ssl_max_version_; 233 rtc::SSLProtocolVersion ssl_max_version_;
234 rtc::Buffer remote_fingerprint_value_; 234 rtc::Buffer remote_fingerprint_value_;
235 std::string remote_fingerprint_algorithm_; 235 std::string remote_fingerprint_algorithm_;
236 236
237 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper); 237 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper);
238 }; 238 };
239 239
240 } // namespace cricket 240 } // namespace cricket
241 241
242 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_ 242 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/dtlstransport.h ('k') | webrtc/p2p/base/dtlstransportchannel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698