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

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

Issue 279833003: Cast: Add missing enum and PacketEvent field to cast_messages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 | « media/cast/logging/encoding_event_subscriber.cc ('k') | media/cast/test/sender.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 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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 22 matching lines...) Expand all
33 PACKET_SENT_TO_NETWORK, 33 PACKET_SENT_TO_NETWORK,
34 PACKET_RETRANSMITTED, 34 PACKET_RETRANSMITTED,
35 // Receiver side packet events. 35 // Receiver side packet events.
36 PACKET_RECEIVED, 36 PACKET_RECEIVED,
37 kNumOfLoggingEvents = PACKET_RECEIVED 37 kNumOfLoggingEvents = PACKET_RECEIVED
38 }; 38 };
39 39
40 const char* CastLoggingToString(CastLoggingEvent event); 40 const char* CastLoggingToString(CastLoggingEvent event);
41 41
42 // CastLoggingEvent are classified into one of three following types. 42 // CastLoggingEvent are classified into one of three following types.
43 enum EventMediaType { AUDIO_EVENT, VIDEO_EVENT, UNKNOWN_EVENT }; 43 enum EventMediaType {
44 AUDIO_EVENT,
45 VIDEO_EVENT,
46 UNKNOWN_EVENT,
47 EVENT_MEDIA_TYPE_LAST = UNKNOWN_EVENT
48 };
44 49
45 struct FrameEvent { 50 struct FrameEvent {
46 FrameEvent(); 51 FrameEvent();
47 ~FrameEvent(); 52 ~FrameEvent();
48 53
49 RtpTimestamp rtp_timestamp; 54 RtpTimestamp rtp_timestamp;
50 uint32 frame_id; 55 uint32 frame_id;
51 56
52 // Size of encoded frame. Only set for FRAME_ENCODED event. 57 // Size of encoded frame. Only set for FRAME_ENCODED event.
53 size_t size; 58 size_t size;
(...skipping 29 matching lines...) Expand all
83 // Time of event logged. 88 // Time of event logged.
84 base::TimeTicks timestamp; 89 base::TimeTicks timestamp;
85 CastLoggingEvent type; 90 CastLoggingEvent type;
86 EventMediaType media_type; 91 EventMediaType media_type;
87 }; 92 };
88 93
89 } // namespace cast 94 } // namespace cast
90 } // namespace media 95 } // namespace media
91 96
92 #endif // MEDIA_CAST_LOGGING_LOGGING_DEFINES_H_ 97 #endif // MEDIA_CAST_LOGGING_LOGGING_DEFINES_H_
OLDNEW
« no previous file with comments | « media/cast/logging/encoding_event_subscriber.cc ('k') | media/cast/test/sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698