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

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

Issue 1369773003: Add a continual_gathering_policy in PeerConnection RTCConfiguration (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: 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
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 const std::string& ice_pwd) override; 67 const std::string& ice_pwd) override;
68 void SetRemoteIceCredentials(const std::string& ice_ufrag, 68 void SetRemoteIceCredentials(const std::string& ice_ufrag,
69 const std::string& ice_pwd) override; 69 const std::string& ice_pwd) override;
70 void SetRemoteIceMode(IceMode mode) override; 70 void SetRemoteIceMode(IceMode mode) override;
71 void Connect() override; 71 void Connect() override;
72 void MaybeStartGathering() override; 72 void MaybeStartGathering() override;
73 IceGatheringState gathering_state() const override { 73 IceGatheringState gathering_state() const override {
74 return gathering_state_; 74 return gathering_state_;
75 } 75 }
76 void AddRemoteCandidate(const Candidate& candidate) override; 76 void AddRemoteCandidate(const Candidate& candidate) override;
77 // Sets the receiving timeout in milliseconds. 77 // Sets the receiving timeout and continue_getting_ports.
78 // This also sets the check_receiving_delay proportionally. 78 // This also sets the check_receiving_delay proportionally.
79 void SetReceivingTimeout(int receiving_timeout_ms) override; 79 void SetIceConfig(const IceConfig& config) override;
80 80
81 // From TransportChannel: 81 // From TransportChannel:
82 int SendPacket(const char* data, 82 int SendPacket(const char* data,
83 size_t len, 83 size_t len,
84 const rtc::PacketOptions& options, 84 const rtc::PacketOptions& options,
85 int flags) override; 85 int flags) override;
86 int SetOption(rtc::Socket::Option opt, int value) override; 86 int SetOption(rtc::Socket::Option opt, int value) override;
87 bool GetOption(rtc::Socket::Option opt, int* value) override; 87 bool GetOption(rtc::Socket::Option opt, int* value) override;
88 int GetError() override { return error_; } 88 int GetError() override { return error_; }
89 bool GetStats(std::vector<ConnectionInfo>* stats) override; 89 bool GetStats(std::vector<ConnectionInfo>* stats) override;
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 std::string remote_ice_pwd_; 243 std::string remote_ice_pwd_;
244 IceMode remote_ice_mode_; 244 IceMode remote_ice_mode_;
245 IceRole ice_role_; 245 IceRole ice_role_;
246 uint64 tiebreaker_; 246 uint64 tiebreaker_;
247 uint32 remote_candidate_generation_; 247 uint32 remote_candidate_generation_;
248 IceGatheringState gathering_state_; 248 IceGatheringState gathering_state_;
249 249
250 int check_receiving_delay_; 250 int check_receiving_delay_;
251 int receiving_timeout_; 251 int receiving_timeout_;
252 uint32 last_ping_sent_ms_ = 0; 252 uint32 last_ping_sent_ms_ = 0;
253 bool continue_getting_ports_ = false;
pthatcher1 2015/09/25 17:37:47 Why not store the config instead of storing both r
honghaiz3 2015/09/25 20:10:20 The config is used to pass the infomation down. B
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

Powered by Google App Engine
This is Rietveld 408576698