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

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

Issue 1648813004: Remove candidates when doing continual gathering (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 4 years, 10 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 2009 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2009 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 SignalSentPacket(this, sent_packet); 214 SignalSentPacket(this, sent_packet);
215 return static_cast<int>(len); 215 return static_cast<int>(len);
216 } 216 }
217 int SetOption(rtc::Socket::Option opt, int value) override { return true; } 217 int SetOption(rtc::Socket::Option opt, int value) override { return true; }
218 bool GetOption(rtc::Socket::Option opt, int* value) override { return true; } 218 bool GetOption(rtc::Socket::Option opt, int* value) override { return true; }
219 int GetError() override { return 0; } 219 int GetError() override { return 0; }
220 220
221 void AddRemoteCandidate(const Candidate& candidate) override { 221 void AddRemoteCandidate(const Candidate& candidate) override {
222 remote_candidates_.push_back(candidate); 222 remote_candidates_.push_back(candidate);
223 } 223 }
224
225 void RemoveRemoteCandidate(const Candidate& candidate) override {}
226
224 const Candidates& remote_candidates() const { return remote_candidates_; } 227 const Candidates& remote_candidates() const { return remote_candidates_; }
225 228
226 void OnMessage(rtc::Message* msg) override { 229 void OnMessage(rtc::Message* msg) override {
227 PacketMessageData* data = static_cast<PacketMessageData*>(msg->pdata); 230 PacketMessageData* data = static_cast<PacketMessageData*>(msg->pdata);
228 dest_->SignalReadPacket(dest_, data->packet.data<char>(), 231 dest_->SignalReadPacket(dest_, data->packet.data<char>(),
229 data->packet.size(), rtc::CreatePacketTime(0), 0); 232 data->packet.size(), rtc::CreatePacketTime(0), 0);
230 delete data; 233 delete data;
231 } 234 }
232 235
233 bool SetLocalCertificate( 236 bool SetLocalCertificate(
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 } 537 }
535 } 538 }
536 539
537 private: 540 private:
538 bool fail_create_channel_; 541 bool fail_create_channel_;
539 }; 542 };
540 543
541 } // namespace cricket 544 } // namespace cricket
542 545
543 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ 546 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698