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

Side by Side Diff: webrtc/p2p/base/transport.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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 sigslot::signal1<Transport*> SignalReceivingState; 177 sigslot::signal1<Transport*> SignalReceivingState;
178 sigslot::signal1<Transport*> SignalCompleted; 178 sigslot::signal1<Transport*> SignalCompleted;
179 sigslot::signal1<Transport*> SignalFailed; 179 sigslot::signal1<Transport*> SignalFailed;
180 180
181 // Returns whether the client has requested the channels to connect. 181 // Returns whether the client has requested the channels to connect.
182 bool connect_requested() const { return connect_requested_; } 182 bool connect_requested() const { return connect_requested_; }
183 183
184 void SetIceRole(IceRole role); 184 void SetIceRole(IceRole role);
185 IceRole ice_role() const { return ice_role_; } 185 IceRole ice_role() const { return ice_role_; }
186 186
187 void SetIceTiebreaker(uint64 IceTiebreaker) { tiebreaker_ = IceTiebreaker; } 187 void SetIceTiebreaker(uint64_t IceTiebreaker) { tiebreaker_ = IceTiebreaker; }
188 uint64 IceTiebreaker() { return tiebreaker_; } 188 uint64_t IceTiebreaker() { return tiebreaker_; }
189 189
190 void SetChannelReceivingTimeout(int timeout_ms); 190 void SetChannelReceivingTimeout(int timeout_ms);
191 191
192 // Must be called before applying local session description. 192 // Must be called before applying local session description.
193 void SetCertificate( 193 void SetCertificate(
194 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate); 194 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate);
195 195
196 // Get a copy of the local identity provided by SetIdentity. 196 // Get a copy of the local identity provided by SetIdentity.
197 bool GetCertificate(rtc::scoped_refptr<rtc::RTCCertificate>* certificate); 197 bool GetCertificate(rtc::scoped_refptr<rtc::RTCCertificate>* certificate);
198 198
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 rtc::Thread* const worker_thread_; 435 rtc::Thread* const worker_thread_;
436 const std::string content_name_; 436 const std::string content_name_;
437 PortAllocator* const allocator_; 437 PortAllocator* const allocator_;
438 bool destroyed_; 438 bool destroyed_;
439 TransportState readable_; 439 TransportState readable_;
440 TransportState writable_; 440 TransportState writable_;
441 TransportState receiving_; 441 TransportState receiving_;
442 bool was_writable_; 442 bool was_writable_;
443 bool connect_requested_; 443 bool connect_requested_;
444 IceRole ice_role_; 444 IceRole ice_role_;
445 uint64 tiebreaker_; 445 uint64_t tiebreaker_;
446 IceMode remote_ice_mode_; 446 IceMode remote_ice_mode_;
447 int channel_receiving_timeout_; 447 int channel_receiving_timeout_;
448 rtc::scoped_ptr<TransportDescription> local_description_; 448 rtc::scoped_ptr<TransportDescription> local_description_;
449 rtc::scoped_ptr<TransportDescription> remote_description_; 449 rtc::scoped_ptr<TransportDescription> remote_description_;
450 450
451 // TODO(tommi): Make sure we only use this on the worker thread. 451 // TODO(tommi): Make sure we only use this on the worker thread.
452 ChannelMap channels_; 452 ChannelMap channels_;
453 // Buffers the ready_candidates so that SignalCanidatesReady can 453 // Buffers the ready_candidates so that SignalCanidatesReady can
454 // provide them in multiples. 454 // provide them in multiples.
455 std::vector<Candidate> ready_candidates_; 455 std::vector<Candidate> ready_candidates_;
456 // Protects changes to channels and messages 456 // Protects changes to channels and messages
457 rtc::CriticalSection crit_; 457 rtc::CriticalSection crit_;
458 458
459 RTC_DISALLOW_COPY_AND_ASSIGN(Transport); 459 RTC_DISALLOW_COPY_AND_ASSIGN(Transport);
460 }; 460 };
461 461
462 462
463 } // namespace cricket 463 } // namespace cricket
464 464
465 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_ 465 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698