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

Side by Side Diff: media/cast/logging/logging_defines.cc

Issue 178073004: Cast: IPC from browser to renderer to send packet events from transport to cast library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed hubbe's comments 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/logging_defines.h" 5 #include "media/cast/logging/logging_defines.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 #define ENUM_TO_STRING(enum) \ 9 #define ENUM_TO_STRING(enum) \
10 case k##enum: \ 10 case k##enum: \
11 return #enum 11 return #enum
12 12
13 namespace media { 13 namespace media {
14 namespace cast { 14 namespace cast {
15 15
16 CastLoggingConfig::CastLoggingConfig() 16 CastLoggingConfig::CastLoggingConfig()
17 : enable_raw_data_collection(false), 17 : enable_raw_data_collection(false),
18 enable_stats_data_collection(false), 18 enable_stats_data_collection(false),
19 enable_tracing(false) {} 19 enable_tracing(false) {}
20 20
21 CastLoggingConfig::CastLoggingConfig(bool enable_raw_data_collection,
22 bool enable_stats_data_collection,
23 bool enable_tracing)
24 : enable_raw_data_collection(enable_raw_data_collection),
25 enable_stats_data_collection(enable_stats_data_collection),
26 enable_tracing(enable_tracing) {}
27
21 CastLoggingConfig::~CastLoggingConfig() {} 28 CastLoggingConfig::~CastLoggingConfig() {}
22 29
23 CastLoggingConfig GetDefaultCastSenderLoggingConfig() { 30 CastLoggingConfig GetDefaultCastSenderLoggingConfig() {
24 return CastLoggingConfig(); 31 return CastLoggingConfig();
25 } 32 }
26 33
27 CastLoggingConfig GetDefaultCastReceiverLoggingConfig() { 34 CastLoggingConfig GetDefaultCastReceiverLoggingConfig() {
28 return CastLoggingConfig(); 35 return CastLoggingConfig();
29 } 36 }
30 37
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 GenericLogStats::GenericLogStats() 149 GenericLogStats::GenericLogStats()
143 : event_counter(0), 150 : event_counter(0),
144 sum(0), 151 sum(0),
145 sum_squared(0), 152 sum_squared(0),
146 min(0), 153 min(0),
147 max(0) {} 154 max(0) {}
148 GenericLogStats::~GenericLogStats() {} 155 GenericLogStats::~GenericLogStats() {}
149 } // namespace cast 156 } // namespace cast
150 } // namespace media 157 } // namespace media
151 158
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698