OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 #include "media/cast/logging/stats_event_subscriber.h" |
| 6 |
| 7 #include <algorithm> |
5 #include <cmath> | 8 #include <cmath> |
6 | 9 |
7 #include "media/cast/logging/stats_event_subscriber.h" | |
8 | |
9 #include "base/format_macros.h" | 10 #include "base/format_macros.h" |
10 #include "base/logging.h" | 11 #include "base/logging.h" |
11 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
12 #include "base/values.h" | 13 #include "base/values.h" |
13 | 14 |
14 #define STAT_ENUM_TO_STRING(enum) \ | 15 #define STAT_ENUM_TO_STRING(enum) \ |
15 case enum: \ | 16 case enum: \ |
16 return #enum | 17 return #enum |
17 | 18 |
18 namespace media { | 19 namespace media { |
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 : event_counter(0), sum_size(0) {} | 747 : event_counter(0), sum_size(0) {} |
747 StatsEventSubscriber::PacketLogStats::~PacketLogStats() {} | 748 StatsEventSubscriber::PacketLogStats::~PacketLogStats() {} |
748 | 749 |
749 StatsEventSubscriber::FrameInfo::FrameInfo() : encoded(false) { | 750 StatsEventSubscriber::FrameInfo::FrameInfo() : encoded(false) { |
750 } | 751 } |
751 StatsEventSubscriber::FrameInfo::~FrameInfo() { | 752 StatsEventSubscriber::FrameInfo::~FrameInfo() { |
752 } | 753 } |
753 | 754 |
754 } // namespace cast | 755 } // namespace cast |
755 } // namespace media | 756 } // namespace media |
OLD | NEW |