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

Side by Side Diff: media/base/media_log.h

Issue 2517313002: Merge M56: "Add audio only watch time metrics." (Closed)
Patch Set: Created 4 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
« no previous file with comments | « content/browser/media/media_internals.cc ('k') | media/base/media_log.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BASE_MEDIA_LOG_H_ 5 #ifndef MEDIA_BASE_MEDIA_LOG_H_
6 #define MEDIA_BASE_MEDIA_LOG_H_ 6 #define MEDIA_BASE_MEDIA_LOG_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 // Report a log message at the specified log level. 78 // Report a log message at the specified log level.
79 void AddLogEvent(MediaLogLevel level, const std::string& message); 79 void AddLogEvent(MediaLogLevel level, const std::string& message);
80 80
81 // Report a property change without an accompanying event. 81 // Report a property change without an accompanying event.
82 void SetStringProperty(const std::string& key, const std::string& value); 82 void SetStringProperty(const std::string& key, const std::string& value);
83 void SetDoubleProperty(const std::string& key, double value); 83 void SetDoubleProperty(const std::string& key, double value);
84 void SetBooleanProperty(const std::string& key, bool value); 84 void SetBooleanProperty(const std::string& key, bool value);
85 85
86 // Histogram names used for reporting; also double as MediaLog key names. 86 // Histogram names used for reporting; also double as MediaLog key names.
87 static const char kWatchTimeAudioAll[];
88 static const char kWatchTimeAudioMse[];
89 static const char kWatchTimeAudioEme[];
90 static const char kWatchTimeAudioSrc[];
91 static const char kWatchTimeAudioBattery[];
92 static const char kWatchTimeAudioAc[];
87 static const char kWatchTimeAudioVideoAll[]; 93 static const char kWatchTimeAudioVideoAll[];
88 static const char kWatchTimeAudioVideoMse[]; 94 static const char kWatchTimeAudioVideoMse[];
89 static const char kWatchTimeAudioVideoEme[]; 95 static const char kWatchTimeAudioVideoEme[];
90 static const char kWatchTimeAudioVideoSrc[]; 96 static const char kWatchTimeAudioVideoSrc[];
91 static const char kWatchTimeAudioVideoBattery[]; 97 static const char kWatchTimeAudioVideoBattery[];
92 static const char kWatchTimeAudioVideoAc[]; 98 static const char kWatchTimeAudioVideoAc[];
93 99
94 // Markers which signify the watch time should be finalized immediately. 100 // Markers which signify the watch time should be finalized immediately.
95 static const char kWatchTimeFinalize[]; 101 static const char kWatchTimeFinalize[];
96 static const char kWatchTimeFinalizePower[]; 102 static const char kWatchTimeFinalizePower[];
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 #define LIMITED_MEDIA_LOG(level, media_log, count, max) \ 148 #define LIMITED_MEDIA_LOG(level, media_log, count, max) \
143 LAZY_STREAM(MEDIA_LOG(level, media_log), \ 149 LAZY_STREAM(MEDIA_LOG(level, media_log), \
144 (count) < (max) && ((count)++ || true)) \ 150 (count) < (max) && ((count)++ || true)) \
145 << (((count) == (max)) ? "(Log limit reached. Further similar entries " \ 151 << (((count) == (max)) ? "(Log limit reached. Further similar entries " \
146 "may be suppressed): " \ 152 "may be suppressed): " \
147 : "") 153 : "")
148 154
149 } // namespace media 155 } // namespace media
150 156
151 #endif // MEDIA_BASE_MEDIA_LOG_H_ 157 #endif // MEDIA_BASE_MEDIA_LOG_H_
OLDNEW
« no previous file with comments | « content/browser/media/media_internals.cc ('k') | media/base/media_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698