| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 if (flags != PF_SRTP_BYPASS && flags != 0) { | 200 if (flags != PF_SRTP_BYPASS && flags != 0) { |
| 201 return -1; | 201 return -1; |
| 202 } | 202 } |
| 203 | 203 |
| 204 PacketMessageData* packet = new PacketMessageData(data, len); | 204 PacketMessageData* packet = new PacketMessageData(data, len); |
| 205 if (async_) { | 205 if (async_) { |
| 206 rtc::Thread::Current()->Post(this, 0, packet); | 206 rtc::Thread::Current()->Post(this, 0, packet); |
| 207 } else { | 207 } else { |
| 208 rtc::Thread::Current()->Send(this, 0, packet); | 208 rtc::Thread::Current()->Send(this, 0, packet); |
| 209 } | 209 } |
| 210 rtc::SentPacket sent_packet(options.packet_id, rtc::Time64()); | 210 rtc::SentPacket sent_packet(options.packet_id, rtc::TimeMillis()); |
| 211 SignalSentPacket(this, sent_packet); | 211 SignalSentPacket(this, sent_packet); |
| 212 return static_cast<int>(len); | 212 return static_cast<int>(len); |
| 213 } | 213 } |
| 214 int SetOption(rtc::Socket::Option opt, int value) override { return true; } | 214 int SetOption(rtc::Socket::Option opt, int value) override { return true; } |
| 215 bool GetOption(rtc::Socket::Option opt, int* value) override { return true; } | 215 bool GetOption(rtc::Socket::Option opt, int* value) override { return true; } |
| 216 int GetError() override { return 0; } | 216 int GetError() override { return 0; } |
| 217 | 217 |
| 218 void AddRemoteCandidate(const Candidate& candidate) override { | 218 void AddRemoteCandidate(const Candidate& candidate) override { |
| 219 remote_candidates_.push_back(candidate); | 219 remote_candidates_.push_back(candidate); |
| 220 } | 220 } |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 } | 572 } |
| 573 } | 573 } |
| 574 | 574 |
| 575 private: | 575 private: |
| 576 bool fail_create_channel_; | 576 bool fail_create_channel_; |
| 577 }; | 577 }; |
| 578 | 578 |
| 579 } // namespace cricket | 579 } // namespace cricket |
| 580 | 580 |
| 581 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ | 581 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ |
| OLD | NEW |