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

Side by Side Diff: media/cast/logging/logging_defines.h

Issue 1619363002: Add compile time checks against longs being used in IPC structs on 32 bit Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more per Dmitry Created 4 years, 10 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
« base/pickle.cc ('K') | « ipc/ipc_message_utils.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef MEDIA_CAST_LOGGING_LOGGING_DEFINES_H_ 5 #ifndef MEDIA_CAST_LOGGING_LOGGING_DEFINES_H_
6 #define MEDIA_CAST_LOGGING_LOGGING_DEFINES_H_ 6 #define MEDIA_CAST_LOGGING_LOGGING_DEFINES_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 ~FrameEvent(); 57 ~FrameEvent();
58 58
59 RtpTimeTicks rtp_timestamp; 59 RtpTimeTicks rtp_timestamp;
60 uint32_t frame_id; 60 uint32_t frame_id;
61 61
62 // Resolution of the frame. Only set for video FRAME_CAPTURE_END events. 62 // Resolution of the frame. Only set for video FRAME_CAPTURE_END events.
63 int width; 63 int width;
64 int height; 64 int height;
65 65
66 // Size of encoded frame in bytes. Only set for FRAME_ENCODED event. 66 // Size of encoded frame in bytes. Only set for FRAME_ENCODED event.
67 size_t size; 67 uint32_t size;
68 68
69 // Time of event logged. 69 // Time of event logged.
70 base::TimeTicks timestamp; 70 base::TimeTicks timestamp;
71 71
72 CastLoggingEvent type; 72 CastLoggingEvent type;
73 73
74 EventMediaType media_type; 74 EventMediaType media_type;
75 75
76 // Only set for FRAME_PLAYOUT events. 76 // Only set for FRAME_PLAYOUT events.
77 // If this value is zero the frame is rendered on time. 77 // If this value is zero the frame is rendered on time.
(...skipping 15 matching lines...) Expand all
93 }; 93 };
94 94
95 struct PacketEvent { 95 struct PacketEvent {
96 PacketEvent(); 96 PacketEvent();
97 ~PacketEvent(); 97 ~PacketEvent();
98 98
99 RtpTimeTicks rtp_timestamp; 99 RtpTimeTicks rtp_timestamp;
100 uint32_t frame_id; 100 uint32_t frame_id;
101 uint16_t max_packet_id; 101 uint16_t max_packet_id;
102 uint16_t packet_id; 102 uint16_t packet_id;
103 size_t size; 103 uint32_t size;
104 104
105 // Time of event logged. 105 // Time of event logged.
106 base::TimeTicks timestamp; 106 base::TimeTicks timestamp;
107 CastLoggingEvent type; 107 CastLoggingEvent type;
108 EventMediaType media_type; 108 EventMediaType media_type;
109 }; 109 };
110 110
111 } // namespace cast 111 } // namespace cast
112 } // namespace media 112 } // namespace media
113 113
114 #endif // MEDIA_CAST_LOGGING_LOGGING_DEFINES_H_ 114 #endif // MEDIA_CAST_LOGGING_LOGGING_DEFINES_H_
OLDNEW
« base/pickle.cc ('K') | « ipc/ipc_message_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698