| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "media/cast/video_sender/video_sender.h" | 5 #include "media/cast/video_sender/video_sender.h" |
| 6 | 6 |
| 7 #include <list> | 7 #include <list> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 12 #include "crypto/encryptor.h" | 12 #include "crypto/encryptor.h" |
| 13 #include "crypto/symmetric_key.h" | 13 #include "crypto/symmetric_key.h" |
| 14 #include "media/cast/cast_defines.h" | 14 #include "media/cast/cast_defines.h" |
| 15 #include "media/cast/pacing/paced_sender.h" | 15 #include "media/cast/net/pacing/paced_sender.h" |
| 16 #include "media/cast/video_sender/video_encoder.h" | 16 #include "media/cast/video_sender/video_encoder.h" |
| 17 | 17 |
| 18 namespace media { | 18 namespace media { |
| 19 namespace cast { | 19 namespace cast { |
| 20 | 20 |
| 21 const int64 kMinSchedulingDelayMs = 1; | 21 const int64 kMinSchedulingDelayMs = 1; |
| 22 | 22 |
| 23 class LocalRtcpVideoSenderFeedback : public RtcpSenderFeedback { | 23 class LocalRtcpVideoSenderFeedback : public RtcpSenderFeedback { |
| 24 public: | 24 public: |
| 25 explicit LocalRtcpVideoSenderFeedback(VideoSender* video_sender) | 25 explicit LocalRtcpVideoSenderFeedback(VideoSender* video_sender) |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 DCHECK(cast_environment_->CurrentlyOn(CastEnvironment::MAIN)); | 399 DCHECK(cast_environment_->CurrentlyOn(CastEnvironment::MAIN)); |
| 400 MissingFramesAndPacketsMap missing_frames_and_packets; | 400 MissingFramesAndPacketsMap missing_frames_and_packets; |
| 401 PacketIdSet missing; | 401 PacketIdSet missing; |
| 402 missing_frames_and_packets.insert(std::make_pair(resend_frame_id, missing)); | 402 missing_frames_and_packets.insert(std::make_pair(resend_frame_id, missing)); |
| 403 rtp_sender_->ResendPackets(missing_frames_and_packets); | 403 rtp_sender_->ResendPackets(missing_frames_and_packets); |
| 404 last_send_time_ = cast_environment_->Clock()->NowTicks(); | 404 last_send_time_ = cast_environment_->Clock()->NowTicks(); |
| 405 } | 405 } |
| 406 | 406 |
| 407 } // namespace cast | 407 } // namespace cast |
| 408 } // namespace media | 408 } // namespace media |
| OLD | NEW |