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

Side by Side Diff: chrome/renderer/media/cast_transport_sender_ipc.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: Compile fixes for cast_messages.h for chromeos cross-compiles. Created 5 years 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 "chrome/renderer/media/cast_transport_sender_ipc.h" 5 #include "chrome/renderer/media/cast_transport_sender_ipc.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/id_map.h" 8 #include "base/id_map.h"
9 #include "chrome/common/cast_messages.h" 9 #include "chrome/common/cast_messages.h"
10 #include "chrome/renderer/media/cast_ipc_dispatcher.h" 10 #include "chrome/renderer/media/cast_ipc_dispatcher.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 } 59 }
60 60
61 void CastTransportSenderIPC::InsertFrame(uint32 ssrc, 61 void CastTransportSenderIPC::InsertFrame(uint32 ssrc,
62 const media::cast::EncodedFrame& frame) { 62 const media::cast::EncodedFrame& frame) {
63 Send(new CastHostMsg_InsertFrame(channel_id_, ssrc, frame)); 63 Send(new CastHostMsg_InsertFrame(channel_id_, ssrc, frame));
64 } 64 }
65 65
66 void CastTransportSenderIPC::SendSenderReport( 66 void CastTransportSenderIPC::SendSenderReport(
67 uint32 ssrc, 67 uint32 ssrc,
68 base::TimeTicks current_time, 68 base::TimeTicks current_time,
69 uint32 current_time_as_rtp_timestamp) { 69 media::cast::RtpTimeTicks current_time_as_rtp_timestamp) {
70 Send(new CastHostMsg_SendSenderReport(channel_id_, 70 Send(new CastHostMsg_SendSenderReport(channel_id_,
71 ssrc, 71 ssrc,
72 current_time, 72 current_time,
73 current_time_as_rtp_timestamp)); 73 current_time_as_rtp_timestamp));
74 } 74 }
75 75
76 void CastTransportSenderIPC::CancelSendingFrames( 76 void CastTransportSenderIPC::CancelSendingFrames(
77 uint32 ssrc, const std::vector<uint32>& frame_ids) { 77 uint32 ssrc, const std::vector<uint32>& frame_ids) {
78 Send(new CastHostMsg_CancelSendingFrames(channel_id_, 78 Send(new CastHostMsg_CancelSendingFrames(channel_id_,
79 ssrc, 79 ssrc,
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 } 192 }
193 } 193 }
194 194
195 void CastTransportSenderIPC::Send(IPC::Message* message) { 195 void CastTransportSenderIPC::Send(IPC::Message* message) {
196 if (CastIPCDispatcher::Get()) { 196 if (CastIPCDispatcher::Get()) {
197 CastIPCDispatcher::Get()->Send(message); 197 CastIPCDispatcher::Get()->Send(message);
198 } else { 198 } else {
199 delete message; 199 delete message;
200 } 200 }
201 } 201 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698