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

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

Issue 1207563002: Add flakiness check if there is no received packets in a certain period. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Address comments except for naming. Created 5 years, 6 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 const rtc::PacketTime& packet_time); 206 const rtc::PacketTime& packet_time);
207 void OnReadyToSend(Connection* connection); 207 void OnReadyToSend(Connection* connection);
208 void OnConnectionDestroyed(Connection *connection); 208 void OnConnectionDestroyed(Connection *connection);
209 209
210 void OnUseCandidate(Connection* conn); 210 void OnUseCandidate(Connection* conn);
211 211
212 virtual void OnMessage(rtc::Message *pmsg); 212 virtual void OnMessage(rtc::Message *pmsg);
213 void OnSort(); 213 void OnSort();
214 void OnPing(); 214 void OnPing();
215 215
216 void OnCheckFlakiness();
217
216 P2PTransport* transport_; 218 P2PTransport* transport_;
217 PortAllocator *allocator_; 219 PortAllocator *allocator_;
218 rtc::Thread *worker_thread_; 220 rtc::Thread *worker_thread_;
219 bool incoming_only_; 221 bool incoming_only_;
220 bool waiting_for_signaling_; 222 bool waiting_for_signaling_;
221 int error_; 223 int error_;
222 std::vector<PortAllocatorSession*> allocator_sessions_; 224 std::vector<PortAllocatorSession*> allocator_sessions_;
223 std::vector<PortInterface *> ports_; 225 std::vector<PortInterface *> ports_;
224 std::vector<Connection *> connections_; 226 std::vector<Connection *> connections_;
225 Connection* best_connection_; 227 Connection* best_connection_;
226 // Connection selected by the controlling agent. This should be used only 228 // Connection selected by the controlling agent. This should be used only
227 // at controlled side when protocol type is RFC5245. 229 // at controlled side when protocol type is RFC5245.
228 Connection* pending_best_connection_; 230 Connection* pending_best_connection_;
229 std::vector<RemoteCandidate> remote_candidates_; 231 std::vector<RemoteCandidate> remote_candidates_;
230 bool sort_dirty_; // indicates whether another sort is needed right now 232 bool sort_dirty_; // indicates whether another sort is needed right now
231 bool was_writable_; 233 bool was_writable_;
232 typedef std::map<rtc::Socket::Option, int> OptionMap; 234 typedef std::map<rtc::Socket::Option, int> OptionMap;
233 OptionMap options_; 235 OptionMap options_;
234 std::string ice_ufrag_; 236 std::string ice_ufrag_;
235 std::string ice_pwd_; 237 std::string ice_pwd_;
236 std::string remote_ice_ufrag_; 238 std::string remote_ice_ufrag_;
237 std::string remote_ice_pwd_; 239 std::string remote_ice_pwd_;
238 IceProtocolType protocol_type_; 240 IceProtocolType protocol_type_;
239 IceMode remote_ice_mode_; 241 IceMode remote_ice_mode_;
240 IceRole ice_role_; 242 IceRole ice_role_;
241 uint64 tiebreaker_; 243 uint64 tiebreaker_;
242 uint32 remote_candidate_generation_; 244 uint32 remote_candidate_generation_;
243 245
246 int check_flakiness_delay_;
247 int check_flakiness_timeout_;
248
pthatcher1 2015/06/26 19:24:02 How about check_receiving_delay_; receiving_tim
honghaiz3 2015/08/05 23:56:56 Done.
244 DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); 249 DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel);
245 }; 250 };
246 251
247 } // namespace cricket 252 } // namespace cricket
248 253
249 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ 254 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698