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

Side by Side Diff: chrome/common/cast_messages.h

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: Speculative workaround fix for win8_chromium_ng compile error. Created 4 years, 11 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
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/cast_messages.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // IPC messages for the Cast transport API. 5 // IPC messages for the Cast transport API.
6 // Multiply-included message file, hence no include guard.
7 6
8 #include <stdint.h> 7 #include <stdint.h>
9 8
10 #include "ipc/ipc_message_macros.h" 9 #include "ipc/ipc_message_macros.h"
11 #include "media/cast/cast_sender.h" 10 #include "media/cast/common/rtp_time.h"
12 #include "media/cast/logging/logging_defines.h" 11 #include "media/cast/logging/logging_defines.h"
13 #include "media/cast/net/cast_transport_sender.h" 12 #include "media/cast/net/cast_transport_sender.h"
14 #include "media/cast/net/rtcp/rtcp_defines.h" 13 #include "media/cast/net/rtcp/rtcp_defines.h"
15 #include "net/base/ip_endpoint.h" 14 #include "net/base/ip_endpoint.h"
16 15
16 #ifndef CHROME_COMMON_CAST_MESSAGES_H_
17 #define CHROME_COMMON_CAST_MESSAGES_H_
18
19 namespace IPC {
20
21 template<>
22 struct ParamTraits<media::cast::RtpTimeTicks> {
23 using param_type = media::cast::RtpTimeTicks;
24 static void Write(Message* m, const param_type& p);
25 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r);
26 static void Log(const param_type& p, std::string* l);
27 };
28
29 } // namespace IPC
30
31 #endif // CHROME_COMMON_CAST_MESSAGES_H_
32
33 // Multiply-included message file, hence no include guard from here.
34
17 #undef IPC_MESSAGE_EXPORT 35 #undef IPC_MESSAGE_EXPORT
18 #define IPC_MESSAGE_EXPORT 36 #define IPC_MESSAGE_EXPORT
19 #define IPC_MESSAGE_START CastMsgStart 37 #define IPC_MESSAGE_START CastMsgStart
20 38
21 IPC_ENUM_TRAITS_MAX_VALUE( 39 IPC_ENUM_TRAITS_MAX_VALUE(
22 media::cast::EncodedFrame::Dependency, 40 media::cast::EncodedFrame::Dependency,
23 media::cast::EncodedFrame::DEPENDENCY_LAST) 41 media::cast::EncodedFrame::DEPENDENCY_LAST)
24 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::Codec, 42 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::Codec,
25 media::cast::CODEC_LAST) 43 media::cast::CODEC_LAST)
26 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::CastTransportStatus, 44 IPC_ENUM_TRAITS_MAX_VALUE(media::cast::CastTransportStatus,
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 169
152 IPC_MESSAGE_CONTROL3(CastHostMsg_InsertFrame, 170 IPC_MESSAGE_CONTROL3(CastHostMsg_InsertFrame,
153 int32_t /* channel_id */, 171 int32_t /* channel_id */,
154 uint32_t /* ssrc */, 172 uint32_t /* ssrc */,
155 media::cast::EncodedFrame /* audio/video frame */) 173 media::cast::EncodedFrame /* audio/video frame */)
156 174
157 IPC_MESSAGE_CONTROL4(CastHostMsg_SendSenderReport, 175 IPC_MESSAGE_CONTROL4(CastHostMsg_SendSenderReport,
158 int32_t /* channel_id */, 176 int32_t /* channel_id */,
159 uint32_t /* ssrc */, 177 uint32_t /* ssrc */,
160 base::TimeTicks /* current_time */, 178 base::TimeTicks /* current_time */,
161 uint32_t /* current_time_as_rtp_timestamp */) 179 media::cast::RtpTimeTicks /* cur_time_as_rtp_timestamp */)
162 180
163 IPC_MESSAGE_CONTROL3(CastHostMsg_CancelSendingFrames, 181 IPC_MESSAGE_CONTROL3(CastHostMsg_CancelSendingFrames,
164 int32_t /* channel_id */, 182 int32_t /* channel_id */,
165 uint32_t /* ssrc */, 183 uint32_t /* ssrc */,
166 std::vector<uint32_t> /* frame_ids */) 184 std::vector<uint32_t> /* frame_ids */)
167 185
168 IPC_MESSAGE_CONTROL3(CastHostMsg_ResendFrameForKickstart, 186 IPC_MESSAGE_CONTROL3(CastHostMsg_ResendFrameForKickstart,
169 int32_t /* channel_id */, 187 int32_t /* channel_id */,
170 uint32_t /* ssrc */, 188 uint32_t /* ssrc */,
171 uint32_t /* frame_id */) 189 uint32_t /* frame_id */)
172 190
173 IPC_MESSAGE_CONTROL2(CastHostMsg_AddValidSsrc, 191 IPC_MESSAGE_CONTROL2(CastHostMsg_AddValidSsrc,
174 int32_t /* channel id */, 192 int32_t /* channel id */,
175 uint32_t /* ssrc */) 193 uint32_t /* ssrc */)
176 194
177 IPC_MESSAGE_CONTROL2(CastHostMsg_SendRtcpFromRtpReceiver, 195 IPC_MESSAGE_CONTROL2(CastHostMsg_SendRtcpFromRtpReceiver,
178 int32_t /* channel id */, 196 int32_t /* channel id */,
179 media::cast::SendRtcpFromRtpReceiver_Params /* data */) 197 media::cast::SendRtcpFromRtpReceiver_Params /* data */)
180 198
181 IPC_MESSAGE_CONTROL4(CastHostMsg_New, 199 IPC_MESSAGE_CONTROL4(CastHostMsg_New,
182 int32_t /* channel_id */, 200 int32_t /* channel_id */,
183 net::IPEndPoint /* local_end_point */, 201 net::IPEndPoint /* local_end_point */,
184 net::IPEndPoint /* remote_end_point */, 202 net::IPEndPoint /* remote_end_point */,
185 base::DictionaryValue /* options */) 203 base::DictionaryValue /* options */)
186 204
187 IPC_MESSAGE_CONTROL1(CastHostMsg_Delete, int32_t /* channel_id */) 205 IPC_MESSAGE_CONTROL1(CastHostMsg_Delete, int32_t /* channel_id */)
OLDNEW
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/cast_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698