OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
Alpha Left Google
2014/03/03 07:11:39
I don't think we need to serialize the stats to JS
imcheng
2014/03/04 02:06:24
Done. I will rename this class to StatsConverter?
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef MEDIA_CAST_LOGGING_STATS_SERIALIZER_H_ | |
6 #define MEDIA_CAST_LOGGING_STATS_SERIALIZER_H_ | |
7 | |
8 #include "media/cast/logging/logging_defines.h" | |
9 | |
10 namespace media { | |
11 namespace cast { | |
12 | |
13 // Writes stats provided in |frame_stats_map| and |packet_stats_map| in JSON | |
14 // format to |out|. See the .cc file for format. Returns |true| if serialization | |
15 // was successful. | |
16 bool SerializeStats(const FrameStatsMap& frame_stats_map, | |
17 const PacketStatsMap& packet_stats_map, | |
18 std::string* out); | |
19 | |
20 } // namespace cast | |
21 } // namespace media | |
22 | |
23 #endif // MEDIA_CAST_LOGGING_STATS_SERIALIZER_H_ | |
OLD | NEW |