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

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

Issue 1345913004: Replace readable with receiving where receiving means receiving anything (stun ping, response or da… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Address comments 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
« no previous file with comments | « webrtc/p2p/base/dtlstransportchannel.cc ('k') | webrtc/p2p/base/p2ptransportchannel.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 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 void UpdateConnectionStates(); 169 void UpdateConnectionStates();
170 void RequestSort(); 170 void RequestSort();
171 void SortConnections(); 171 void SortConnections();
172 void SwitchBestConnectionTo(Connection* conn); 172 void SwitchBestConnectionTo(Connection* conn);
173 void UpdateChannelState(); 173 void UpdateChannelState();
174 void HandleWritable(); 174 void HandleWritable();
175 void HandleNotWritable(); 175 void HandleNotWritable();
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, bool readable); 180 PortInterface* origin_port);
181 bool CreateConnection(PortInterface* port, const Candidate& remote_candidate, 181 bool CreateConnection(PortInterface* port,
182 PortInterface* origin_port, bool readable); 182 const Candidate& remote_candidate,
183 PortInterface* origin_port);
183 bool FindConnection(cricket::Connection* connection) const; 184 bool FindConnection(cricket::Connection* connection) const;
184 185
185 uint32 GetRemoteCandidateGeneration(const Candidate& candidate); 186 uint32 GetRemoteCandidateGeneration(const Candidate& candidate);
186 bool IsDuplicateRemoteCandidate(const Candidate& candidate); 187 bool IsDuplicateRemoteCandidate(const Candidate& candidate);
187 void RememberRemoteCandidate(const Candidate& remote_candidate, 188 void RememberRemoteCandidate(const Candidate& remote_candidate,
188 PortInterface* origin_port); 189 PortInterface* origin_port);
189 bool IsPingable(Connection* conn); 190 bool IsPingable(Connection* conn);
190 void PingConnection(Connection* conn); 191 void PingConnection(Connection* conn);
191 void AddAllocatorSession(PortAllocatorSession* session); 192 void AddAllocatorSession(PortAllocatorSession* session);
192 void AddConnection(Connection* connection); 193 void AddConnection(Connection* connection);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 251
251 int check_receiving_delay_; 252 int check_receiving_delay_;
252 int receiving_timeout_; 253 int receiving_timeout_;
253 254
254 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); 255 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel);
255 }; 256 };
256 257
257 } // namespace cricket 258 } // namespace cricket
258 259
259 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ 260 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/dtlstransportchannel.cc ('k') | webrtc/p2p/base/p2ptransportchannel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698