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

Side by Side Diff: media/cast/logging/stats_serializer.h

Issue 184853003: Cast: Add GetStats() extensions API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698