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

Side by Side Diff: media/cast/net/cast_transport_sender_impl.cc

Issue 1515433002: Replace uses of raw uint32's with a type-checked RtpTimeTicks data type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix in chrome_common.gypi to avoid building cast_messages.* on Android. Created 4 years, 12 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/net/cast_transport_sender_impl.h" 5 #include "media/cast/net/cast_transport_sender_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 } else if (video_sender_ && ssrc == video_sender_->ssrc()) { 258 } else if (video_sender_ && ssrc == video_sender_->ssrc()) {
259 EncryptAndSendFrame(frame, &video_encryptor_, video_sender_.get()); 259 EncryptAndSendFrame(frame, &video_encryptor_, video_sender_.get());
260 } else { 260 } else {
261 NOTREACHED() << "Invalid InsertFrame call."; 261 NOTREACHED() << "Invalid InsertFrame call.";
262 } 262 }
263 } 263 }
264 264
265 void CastTransportSenderImpl::SendSenderReport( 265 void CastTransportSenderImpl::SendSenderReport(
266 uint32_t ssrc, 266 uint32_t ssrc,
267 base::TimeTicks current_time, 267 base::TimeTicks current_time,
268 uint32_t current_time_as_rtp_timestamp) { 268 RtpTimeTicks current_time_as_rtp_timestamp) {
269 if (audio_sender_ && ssrc == audio_sender_->ssrc()) { 269 if (audio_sender_ && ssrc == audio_sender_->ssrc()) {
270 audio_rtcp_session_->SendRtcpFromRtpSender( 270 audio_rtcp_session_->SendRtcpFromRtpSender(
271 current_time, current_time_as_rtp_timestamp, 271 current_time, current_time_as_rtp_timestamp,
272 audio_sender_->send_packet_count(), audio_sender_->send_octet_count()); 272 audio_sender_->send_packet_count(), audio_sender_->send_octet_count());
273 } else if (video_sender_ && ssrc == video_sender_->ssrc()) { 273 } else if (video_sender_ && ssrc == video_sender_->ssrc()) {
274 video_rtcp_session_->SendRtcpFromRtpSender( 274 video_rtcp_session_->SendRtcpFromRtpSender(
275 current_time, current_time_as_rtp_timestamp, 275 current_time, current_time_as_rtp_timestamp,
276 video_sender_->send_packet_count(), video_sender_->send_octet_count()); 276 video_sender_->send_packet_count(), video_sender_->send_octet_count());
277 } else { 277 } else {
278 NOTREACHED() << "Invalid request for sending RTCP packet."; 278 NOTREACHED() << "Invalid request for sending RTCP packet.";
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 sender_ssrc); 483 sender_ssrc);
484 rtcp.SendRtcpFromRtpReceiver(time_data, 484 rtcp.SendRtcpFromRtpReceiver(time_data,
485 cast_message, 485 cast_message,
486 target_delay, 486 target_delay,
487 rtcp_events, 487 rtcp_events,
488 rtp_receiver_statistics); 488 rtp_receiver_statistics);
489 } 489 }
490 490
491 } // namespace cast 491 } // namespace cast
492 } // namespace media 492 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698