| 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 |
| 219 const Candidates& remote_candidates() const { return remote_candidates_; } | 222 const Candidates& remote_candidates() const { return remote_candidates_; } |
| 220 | 223 |
| 221 void OnMessage(rtc::Message* msg) override { | 224 void OnMessage(rtc::Message* msg) override { |
| 222 PacketMessageData* data = static_cast<PacketMessageData*>(msg->pdata); | 225 PacketMessageData* data = static_cast<PacketMessageData*>(msg->pdata); |
| 223 dest_->SignalReadPacket(dest_, data->packet.data<char>(), | 226 dest_->SignalReadPacket(dest_, data->packet.data<char>(), |
| 224 data->packet.size(), rtc::CreatePacketTime(0), 0); | 227 data->packet.size(), rtc::CreatePacketTime(0), 0); |
| 225 delete data; | 228 delete data; |
| 226 } | 229 } |
| 227 | 230 |
| 228 bool SetLocalCertificate( | 231 bool SetLocalCertificate( |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 } | 530 } |
| 528 } | 531 } |
| 529 | 532 |
| 530 private: | 533 private: |
| 531 bool fail_create_channel_; | 534 bool fail_create_channel_; |
| 532 }; | 535 }; |
| 533 | 536 |
| 534 } // namespace cricket | 537 } // namespace cricket |
| 535 | 538 |
| 536 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ | 539 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ |
| OLD | NEW |