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

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

Issue 1351673003: 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: Resync, rebase, and 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
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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 void UpdateConnectionStates(); 165 void UpdateConnectionStates();
166 void RequestSort(); 166 void RequestSort();
167 void SortConnections(); 167 void SortConnections();
168 void SwitchBestConnectionTo(Connection* conn); 168 void SwitchBestConnectionTo(Connection* conn);
169 void UpdateChannelState(); 169 void UpdateChannelState();
170 void HandleWritable(); 170 void HandleWritable();
171 void HandleNotWritable(); 171 void HandleNotWritable();
172 void HandleAllTimedOut(); 172 void HandleAllTimedOut();
173 173
174 Connection* GetBestConnectionOnNetwork(rtc::Network* network) const; 174 Connection* GetBestConnectionOnNetwork(rtc::Network* network) const;
175 bool CreateConnections(const Candidate &remote_candidate, 175 bool CreateConnections(const Candidate& remote_candidate,
176 PortInterface* origin_port, bool readable); 176 PortInterface* origin_port);
177 bool CreateConnection(PortInterface* port, const Candidate& remote_candidate, 177 bool CreateConnection(PortInterface* port,
178 PortInterface* origin_port, bool readable); 178 const Candidate& remote_candidate,
179 PortInterface* origin_port);
179 bool FindConnection(cricket::Connection* connection) const; 180 bool FindConnection(cricket::Connection* connection) const;
180 181
181 uint32 GetRemoteCandidateGeneration(const Candidate& candidate); 182 uint32 GetRemoteCandidateGeneration(const Candidate& candidate);
182 bool IsDuplicateRemoteCandidate(const Candidate& candidate); 183 bool IsDuplicateRemoteCandidate(const Candidate& candidate);
183 void RememberRemoteCandidate(const Candidate& remote_candidate, 184 void RememberRemoteCandidate(const Candidate& remote_candidate,
184 PortInterface* origin_port); 185 PortInterface* origin_port);
185 bool IsPingable(Connection* conn); 186 bool IsPingable(Connection* conn);
186 void PingConnection(Connection* conn); 187 void PingConnection(Connection* conn);
187 void AddAllocatorSession(PortAllocatorSession* session); 188 void AddAllocatorSession(PortAllocatorSession* session);
188 void AddConnection(Connection* connection); 189 void AddConnection(Connection* connection);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 248
248 int check_receiving_delay_; 249 int check_receiving_delay_;
249 int receiving_timeout_; 250 int receiving_timeout_;
250 251
251 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); 252 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel);
252 }; 253 };
253 254
254 } // namespace cricket 255 } // namespace cricket
255 256
256 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ 257 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698