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

Side by Side Diff: webrtc/p2p/base/p2ptransportchannel.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: google::int32 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
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 int component, 55 int component,
56 P2PTransport* transport, 56 P2PTransport* transport,
57 PortAllocator *allocator); 57 PortAllocator *allocator);
58 ~P2PTransportChannel() override; 58 ~P2PTransportChannel() override;
59 59
60 // From TransportChannelImpl: 60 // From TransportChannelImpl:
61 Transport* GetTransport() override { return transport_; } 61 Transport* GetTransport() override { return transport_; }
62 TransportChannelState GetState() const override; 62 TransportChannelState GetState() const override;
63 void SetIceRole(IceRole role) override; 63 void SetIceRole(IceRole role) override;
64 IceRole GetIceRole() const override { return ice_role_; } 64 IceRole GetIceRole() const override { return ice_role_; }
65 void SetIceTiebreaker(uint64 tiebreaker) override; 65 void SetIceTiebreaker(uint64_t tiebreaker) override;
66 void SetIceCredentials(const std::string& ice_ufrag, 66 void SetIceCredentials(const std::string& ice_ufrag,
67 const std::string& ice_pwd) override; 67 const std::string& ice_pwd) override;
68 void SetRemoteIceCredentials(const std::string& ice_ufrag, 68 void SetRemoteIceCredentials(const std::string& ice_ufrag,
69 const std::string& ice_pwd) override; 69 const std::string& ice_pwd) override;
70 void SetRemoteIceMode(IceMode mode) override; 70 void SetRemoteIceMode(IceMode mode) override;
71 void Connect() override; 71 void Connect() override;
72 void OnSignalingReady() override; 72 void OnSignalingReady() override;
73 void OnCandidate(const Candidate& candidate) override; 73 void OnCandidate(const Candidate& candidate) override;
74 // Sets the receiving timeout in milliseconds. 74 // Sets the receiving timeout in milliseconds.
75 // This also sets the check_receiving_delay proportionally. 75 // This also sets the check_receiving_delay proportionally.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 rtc::scoped_refptr<rtc::RTCCertificate> GetLocalCertificate() const override { 123 rtc::scoped_refptr<rtc::RTCCertificate> GetLocalCertificate() const override {
124 return nullptr; 124 return nullptr;
125 } 125 }
126 126
127 bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const override { 127 bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const override {
128 return false; 128 return false;
129 } 129 }
130 130
131 // Allows key material to be extracted for external encryption. 131 // Allows key material to be extracted for external encryption.
132 bool ExportKeyingMaterial(const std::string& label, 132 bool ExportKeyingMaterial(const std::string& label,
133 const uint8* context, 133 const uint8_t* context,
134 size_t context_len, 134 size_t context_len,
135 bool use_context, 135 bool use_context,
136 uint8* result, 136 uint8_t* result,
137 size_t result_len) override { 137 size_t result_len) override {
138 return false; 138 return false;
139 } 139 }
140 140
141 bool SetLocalCertificate( 141 bool SetLocalCertificate(
142 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) override { 142 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) override {
143 return false; 143 return false;
144 } 144 }
145 145
146 // Set DTLS Remote fingerprint. Must be after local identity set. 146 // Set DTLS Remote fingerprint. Must be after local identity set.
147 bool SetRemoteFingerprint(const std::string& digest_alg, 147 bool SetRemoteFingerprint(const std::string& digest_alg,
148 const uint8* digest, 148 const uint8_t* digest,
149 size_t digest_len) override { 149 size_t digest_len) override {
150 return false; 150 return false;
151 } 151 }
152 152
153 int receiving_timeout() const { return receiving_timeout_; } 153 int receiving_timeout() const { return receiving_timeout_; }
154 int check_receiving_delay() const { return check_receiving_delay_; } 154 int check_receiving_delay() const { return check_receiving_delay_; }
155 155
156 // Helper method used only in unittest. 156 // Helper method used only in unittest.
157 rtc::DiffServCodePoint DefaultDscpValue() const; 157 rtc::DiffServCodePoint DefaultDscpValue() const;
158 158
(...skipping 17 matching lines...) Expand all
176 void HandleAllTimedOut(); 176 void HandleAllTimedOut();
177 177
178 Connection* GetBestConnectionOnNetwork(rtc::Network* network) const; 178 Connection* GetBestConnectionOnNetwork(rtc::Network* network) const;
179 bool CreateConnections(const Candidate& remote_candidate, 179 bool CreateConnections(const Candidate& remote_candidate,
180 PortInterface* origin_port); 180 PortInterface* origin_port);
181 bool CreateConnection(PortInterface* port, 181 bool CreateConnection(PortInterface* port,
182 const Candidate& remote_candidate, 182 const Candidate& remote_candidate,
183 PortInterface* origin_port); 183 PortInterface* origin_port);
184 bool FindConnection(cricket::Connection* connection) const; 184 bool FindConnection(cricket::Connection* connection) const;
185 185
186 uint32 GetRemoteCandidateGeneration(const Candidate& candidate); 186 uint32_t GetRemoteCandidateGeneration(const Candidate& candidate);
187 bool IsDuplicateRemoteCandidate(const Candidate& candidate); 187 bool IsDuplicateRemoteCandidate(const Candidate& candidate);
188 void RememberRemoteCandidate(const Candidate& remote_candidate, 188 void RememberRemoteCandidate(const Candidate& remote_candidate,
189 PortInterface* origin_port); 189 PortInterface* origin_port);
190 bool IsPingable(Connection* conn); 190 bool IsPingable(Connection* conn);
191 void PingConnection(Connection* conn); 191 void PingConnection(Connection* conn);
192 void AddAllocatorSession(PortAllocatorSession* session); 192 void AddAllocatorSession(PortAllocatorSession* session);
193 void AddConnection(Connection* connection); 193 void AddConnection(Connection* connection);
194 194
195 void OnPortReady(PortAllocatorSession *session, PortInterface* port); 195 void OnPortReady(PortAllocatorSession *session, PortInterface* port);
196 void OnCandidatesReady(PortAllocatorSession *session, 196 void OnCandidatesReady(PortAllocatorSession *session,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 bool sort_dirty_; // indicates whether another sort is needed right now 239 bool sort_dirty_; // indicates whether another sort is needed right now
240 bool was_writable_; 240 bool was_writable_;
241 typedef std::map<rtc::Socket::Option, int> OptionMap; 241 typedef std::map<rtc::Socket::Option, int> OptionMap;
242 OptionMap options_; 242 OptionMap options_;
243 std::string ice_ufrag_; 243 std::string ice_ufrag_;
244 std::string ice_pwd_; 244 std::string ice_pwd_;
245 std::string remote_ice_ufrag_; 245 std::string remote_ice_ufrag_;
246 std::string remote_ice_pwd_; 246 std::string remote_ice_pwd_;
247 IceMode remote_ice_mode_; 247 IceMode remote_ice_mode_;
248 IceRole ice_role_; 248 IceRole ice_role_;
249 uint64 tiebreaker_; 249 uint64_t tiebreaker_;
250 uint32 remote_candidate_generation_; 250 uint32_t remote_candidate_generation_;
251 251
252 int check_receiving_delay_; 252 int check_receiving_delay_;
253 int receiving_timeout_; 253 int receiving_timeout_;
254 254
255 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); 255 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel);
256 }; 256 };
257 257
258 } // namespace cricket 258 } // namespace cricket
259 259
260 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ 260 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698