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_ |