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

Unified Diff: media/cast/logging/logging_stats.h

Issue 184853003: Cast: Add GetStats() extensions API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: static cast to int Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/cast/logging/logging_impl_unittest.cc ('k') | media/cast/logging/logging_stats.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/logging/logging_stats.h
diff --git a/media/cast/logging/logging_stats.h b/media/cast/logging/logging_stats.h
index eb5745e7e2f87b5d78a3e02dda04302628f34cc8..e04db8d96f3bed96cedb6a3cadebc4b087830ca6 100644
--- a/media/cast/logging/logging_stats.h
+++ b/media/cast/logging/logging_stats.h
@@ -6,9 +6,14 @@
#define MEDIA_CAST_LOGGING_LOGGING_STATS_H_
#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
#include "base/time/time.h"
#include "media/cast/logging/logging_defines.h"
+namespace base {
+class DictionaryValue;
+}
+
namespace media {
namespace cast {
@@ -47,9 +52,9 @@ class LoggingStats {
void InsertGenericEvent(const base::TimeTicks& time_of_event,
CastLoggingEvent event, int value);
- FrameStatsMap GetFrameStatsData() const;
+ FrameStatsMap GetFrameStatsData(EventMediaType media_type) const;
- PacketStatsMap GetPacketStatsData() const;
+ PacketStatsMap GetPacketStatsData(EventMediaType media_type) const;
GenericStatsMap GetGenericStatsData() const;
@@ -66,6 +71,12 @@ class LoggingStats {
DISALLOW_COPY_AND_ASSIGN(LoggingStats);
};
+// Converts stats provided in |frame_stats_map| and |packet_stats_map| to
+// base::DictionaryValue format. See .cc file for the exact structure.
+scoped_ptr<base::DictionaryValue> ConvertStats(
+ const FrameStatsMap& frame_stats_map,
+ const PacketStatsMap& packet_stats_map);
+
} // namespace cast
} // namespace media
« no previous file with comments | « media/cast/logging/logging_impl_unittest.cc ('k') | media/cast/logging/logging_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698