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

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

Issue 134843005: Cast:Updating logging (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
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>
11 11
12 #include "base/memory/linked_ptr.h" 12 #include "base/memory/linked_ptr.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 14
15 namespace media { 15 namespace media {
16 namespace cast { 16 namespace cast {
17 17
18 static const uint32 kFrameIdUnknown = 0xFFFF; 18 static const uint32 kFrameIdUnknown = 0xFFFF;
19 19
20 struct CastLoggingConfig { 20 struct CastLoggingConfig {
21 CastLoggingConfig(); 21 CastLoggingConfig();
22 ~CastLoggingConfig(); 22 ~CastLoggingConfig();
23 23
24 bool enable_data_collection; 24 bool enable_raw_data_collection;
25 bool enable_stats_data_collection;
25 bool enable_uma_stats; 26 bool enable_uma_stats;
26 bool enable_tracing; 27 bool enable_tracing;
27 }; 28 };
28 29
29 // By default, enable raw and stats data collection. Disable tracing and UMA. 30 // By default, enable raw and stats data collection. Disable tracing and UMA.
30 CastLoggingConfig GetDefaultCastLoggingConfig(); 31 CastLoggingConfig GetDefaultCastLoggingConfig();
31 32
32 enum CastLoggingEvent { 33 enum CastLoggingEvent {
33 // Generic events. 34 // Generic events.
34 kUnknown, 35 kUnknown,
35 kRttMs, 36 kRttMs,
36 kPacketLoss, 37 kPacketLoss,
37 kJitterMs, 38 kJitterMs,
38 kAckReceived, 39 kAckReceived,
39 kRembBitrate, 40 kRembBitrate,
40 kAckSent, 41 kAckSent,
41 kLastEvent,
42 // Audio sender. 42 // Audio sender.
43 kAudioFrameReceived, 43 kAudioFrameReceived,
44 kAudioFrameCaptured, 44 kAudioFrameCaptured,
45 kAudioFrameEncoded, 45 kAudioFrameEncoded,
46 // Audio receiver. 46 // Audio receiver.
47 kAudioPlayoutDelay, 47 kAudioPlayoutDelay,
48 kAudioFrameDecoded, 48 kAudioFrameDecoded,
49 // Video sender. 49 // Video sender.
50 kVideoFrameCaptured, 50 kVideoFrameCaptured,
51 kVideoFrameReceived, 51 kVideoFrameReceived,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 typedef std::map<CastLoggingEvent, GenericEvent> GenericRawMap; 122 typedef std::map<CastLoggingEvent, GenericEvent> GenericRawMap;
123 123
124 typedef std::map<CastLoggingEvent, linked_ptr<FrameLogStats > > FrameStatsMap; 124 typedef std::map<CastLoggingEvent, linked_ptr<FrameLogStats > > FrameStatsMap;
125 typedef std::map<CastLoggingEvent, double> PacketStatsMap; 125 typedef std::map<CastLoggingEvent, double> PacketStatsMap;
126 typedef std::map<CastLoggingEvent, double> GenericStatsMap; 126 typedef std::map<CastLoggingEvent, double> GenericStatsMap;
127 127
128 } // namespace cast 128 } // namespace cast
129 } // namespace media 129 } // namespace media
130 130
131 #endif // MEDIA_CAST_LOGGING_LOGGING_DEFINES_H_ 131 #endif // MEDIA_CAST_LOGGING_LOGGING_DEFINES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698