OLD | NEW |
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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 SignalSentPacket(this, sent_packet); | 209 SignalSentPacket(this, sent_packet); |
210 return static_cast<int>(len); | 210 return static_cast<int>(len); |
211 } | 211 } |
212 int SetOption(rtc::Socket::Option opt, int value) override { return true; } | 212 int SetOption(rtc::Socket::Option opt, int value) override { return true; } |
213 bool GetOption(rtc::Socket::Option opt, int* value) override { return true; } | 213 bool GetOption(rtc::Socket::Option opt, int* value) override { return true; } |
214 int GetError() override { return 0; } | 214 int GetError() override { return 0; } |
215 | 215 |
216 void AddRemoteCandidate(const Candidate& candidate) override { | 216 void AddRemoteCandidate(const Candidate& candidate) override { |
217 remote_candidates_.push_back(candidate); | 217 remote_candidates_.push_back(candidate); |
218 } | 218 } |
219 | |
220 void RemoveRemoteCandidate(const Candidate& candidate) override {} | |
221 | |
222 const Candidates& remote_candidates() const { return remote_candidates_; } | 219 const Candidates& remote_candidates() const { return remote_candidates_; } |
223 | 220 |
224 void OnMessage(rtc::Message* msg) override { | 221 void OnMessage(rtc::Message* msg) override { |
225 PacketMessageData* data = static_cast<PacketMessageData*>(msg->pdata); | 222 PacketMessageData* data = static_cast<PacketMessageData*>(msg->pdata); |
226 dest_->SignalReadPacket(dest_, data->packet.data<char>(), | 223 dest_->SignalReadPacket(dest_, data->packet.data<char>(), |
227 data->packet.size(), rtc::CreatePacketTime(0), 0); | 224 data->packet.size(), rtc::CreatePacketTime(0), 0); |
228 delete data; | 225 delete data; |
229 } | 226 } |
230 | 227 |
231 bool SetLocalCertificate( | 228 bool SetLocalCertificate( |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 } | 527 } |
531 } | 528 } |
532 | 529 |
533 private: | 530 private: |
534 bool fail_create_channel_; | 531 bool fail_create_channel_; |
535 }; | 532 }; |
536 | 533 |
537 } // namespace cricket | 534 } // namespace cricket |
538 | 535 |
539 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ | 536 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ |
OLD | NEW |