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

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

Issue 184853003: Cast: Add GetStats() extensions API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add files Created 6 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 side-by-side diff with in-line comments
Download patch
Index: media/cast/logging/stats_converter.h
diff --git a/media/cast/logging/stats_converter.h b/media/cast/logging/stats_converter.h
new file mode 100644
index 0000000000000000000000000000000000000000..462b930a481038f773adb062ecb085268b7ff7a6
--- /dev/null
+++ b/media/cast/logging/stats_converter.h
@@ -0,0 +1,27 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MEDIA_CAST_LOGGING_STATS_CONVERTER_H_
+#define MEDIA_CAST_LOGGING_STATS_CONVERTER_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "media/cast/logging/logging_defines.h"
+
+namespace base {
+class DictionaryValue;
+}
+
+namespace media {
+namespace cast {
+
+// 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(
Alpha Left Google 2014/03/04 21:13:35 Why not move this method to logging_stats.h? It's
imcheng 2014/03/05 00:20:26 Done.
+ const FrameStatsMap& frame_stats_map,
+ const PacketStatsMap& packet_stats_map);
+
+} // namespace cast
+} // namespace media
+
+#endif // MEDIA_CAST_LOGGING_STATS_CONVERTER_H_

Powered by Google App Engine
This is Rietveld 408576698