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

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: 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 void UpdateConnectionStates(); 170 void UpdateConnectionStates();
171 void RequestSort(); 171 void RequestSort();
172 void SortConnections(); 172 void SortConnections();
173 void SwitchBestConnectionTo(Connection* conn); 173 void SwitchBestConnectionTo(Connection* conn);
174 void UpdateChannelState(); 174 void UpdateChannelState();
175 void HandleWritable(); 175 void HandleWritable();
176 void HandleNotWritable(); 176 void HandleNotWritable();
177 void HandleAllTimedOut(); 177 void HandleAllTimedOut();
178 178
179 Connection* GetBestConnectionOnNetwork(rtc::Network* network) const; 179 Connection* GetBestConnectionOnNetwork(rtc::Network* network) const;
180 bool CreateConnections(const Candidate &remote_candidate, 180 bool CreateConnections(const Candidate& remote_candidate,
181 PortInterface* origin_port, bool readable); 181 PortInterface* origin_port);
182 bool CreateConnection(PortInterface* port, const Candidate& remote_candidate, 182 bool CreateConnection(PortInterface* port,
183 PortInterface* origin_port, bool readable); 183 const Candidate& remote_candidate,
184 PortInterface* origin_port);
184 bool FindConnection(cricket::Connection* connection) const; 185 bool FindConnection(cricket::Connection* connection) const;
185 186
186 uint32 GetRemoteCandidateGeneration(const Candidate& candidate); 187 uint32 GetRemoteCandidateGeneration(const Candidate& candidate);
187 bool IsDuplicateRemoteCandidate(const Candidate& candidate); 188 bool IsDuplicateRemoteCandidate(const Candidate& candidate);
188 void RememberRemoteCandidate(const Candidate& remote_candidate, 189 void RememberRemoteCandidate(const Candidate& remote_candidate,
189 PortInterface* origin_port); 190 PortInterface* origin_port);
190 bool IsPingable(Connection* conn); 191 bool IsPingable(Connection* conn);
191 void PingConnection(Connection* conn); 192 void PingConnection(Connection* conn);
192 void AddAllocatorSession(PortAllocatorSession* session); 193 void AddAllocatorSession(PortAllocatorSession* session);
193 void AddConnection(Connection* connection); 194 void AddConnection(Connection* connection);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 252
252 int check_receiving_delay_; 253 int check_receiving_delay_;
253 int receiving_timeout_; 254 int receiving_timeout_;
254 255
255 DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); 256 DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel);
256 }; 257 };
257 258
258 } // namespace cricket 259 } // namespace cricket
259 260
260 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ 261 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698