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

Side by Side Diff: webrtc/p2p/base/transportchannelimpl.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/transportchannel.h ('k') | webrtc/p2p/base/transportcontroller.h » ('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 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 24 matching lines...) Expand all
35 explicit TransportChannelImpl(const std::string& transport_name, 35 explicit TransportChannelImpl(const std::string& transport_name,
36 int component) 36 int component)
37 : TransportChannel(transport_name, component) {} 37 : TransportChannel(transport_name, component) {}
38 38
39 // Returns the transport that created this channel. 39 // Returns the transport that created this channel.
40 virtual Transport* GetTransport() = 0; 40 virtual Transport* GetTransport() = 0;
41 41
42 // For ICE channels. 42 // For ICE channels.
43 virtual IceRole GetIceRole() const = 0; 43 virtual IceRole GetIceRole() const = 0;
44 virtual void SetIceRole(IceRole role) = 0; 44 virtual void SetIceRole(IceRole role) = 0;
45 virtual void SetIceTiebreaker(uint64 tiebreaker) = 0; 45 virtual void SetIceTiebreaker(uint64_t tiebreaker) = 0;
46 // TODO(pthatcher): Remove this once it's no longer called in 46 // TODO(pthatcher): Remove this once it's no longer called in
47 // remoting/protocol/libjingle_transport_factory.cc 47 // remoting/protocol/libjingle_transport_factory.cc
48 virtual void SetIceProtocolType(IceProtocolType type) {} 48 virtual void SetIceProtocolType(IceProtocolType type) {}
49 // SetIceCredentials only need to be implemented by the ICE 49 // SetIceCredentials only need to be implemented by the ICE
50 // transport channels. Non-ICE transport channels can just ignore. 50 // transport channels. Non-ICE transport channels can just ignore.
51 // The ufrag and pwd should be set before the Connect() is called. 51 // The ufrag and pwd should be set before the Connect() is called.
52 virtual void SetIceCredentials(const std::string& ice_ufrag, 52 virtual void SetIceCredentials(const std::string& ice_ufrag,
53 const std::string& ice_pwd) = 0; 53 const std::string& ice_pwd) = 0;
54 // SetRemoteIceCredentials only need to be implemented by the ICE 54 // SetRemoteIceCredentials only need to be implemented by the ICE
55 // transport channels. Non-ICE transport channels can just ignore. 55 // transport channels. Non-ICE transport channels can just ignore.
(...skipping 27 matching lines...) Expand all
83 virtual void AddRemoteCandidate(const Candidate& candidate) = 0; 83 virtual void AddRemoteCandidate(const Candidate& candidate) = 0;
84 84
85 virtual IceGatheringState gathering_state() const = 0; 85 virtual IceGatheringState gathering_state() const = 0;
86 86
87 // DTLS methods 87 // DTLS methods
88 virtual bool SetLocalCertificate( 88 virtual bool SetLocalCertificate(
89 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) = 0; 89 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) = 0;
90 90
91 // Set DTLS Remote fingerprint. Must be after local identity set. 91 // Set DTLS Remote fingerprint. Must be after local identity set.
92 virtual bool SetRemoteFingerprint(const std::string& digest_alg, 92 virtual bool SetRemoteFingerprint(const std::string& digest_alg,
93 const uint8* digest, 93 const uint8_t* digest,
94 size_t digest_len) = 0; 94 size_t digest_len) = 0;
95 95
96 virtual bool SetSslRole(rtc::SSLRole role) = 0; 96 virtual bool SetSslRole(rtc::SSLRole role) = 0;
97 97
98 // Invoked when there is conflict in the ICE role between local and remote 98 // Invoked when there is conflict in the ICE role between local and remote
99 // agents. 99 // agents.
100 sigslot::signal1<TransportChannelImpl*> SignalRoleConflict; 100 sigslot::signal1<TransportChannelImpl*> SignalRoleConflict;
101 101
102 // Emitted whenever the number of connections available to the transport 102 // Emitted whenever the number of connections available to the transport
103 // channel decreases. 103 // channel decreases.
104 sigslot::signal1<TransportChannelImpl*> SignalConnectionRemoved; 104 sigslot::signal1<TransportChannelImpl*> SignalConnectionRemoved;
105 105
106 private: 106 private:
107 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannelImpl); 107 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannelImpl);
108 }; 108 };
109 109
110 } // namespace cricket 110 } // namespace cricket
111 111
112 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNELIMPL_H_ 112 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNELIMPL_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/transportchannel.h ('k') | webrtc/p2p/base/transportcontroller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698