| 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 #ifndef CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ | 5 #ifndef CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ |
| 6 #define CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ | 6 #define CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 11 | 11 |
| 12 namespace switches { | 12 namespace switches { |
| 13 | 13 |
| 14 // Switch values | 14 // Switch values |
| 15 extern const char kSwitchValueTrue[]; | 15 extern const char kSwitchValueTrue[]; |
| 16 extern const char kSwitchValueFalse[]; | 16 extern const char kSwitchValueFalse[]; |
| 17 | 17 |
| 18 // Url to upload crash data to. | 18 // Url to upload crash data to. |
| 19 extern const char kCrashServerUrl[]; | 19 extern const char kCrashServerUrl[]; |
| 20 | 20 |
| 21 // Media switches | |
| 22 extern const char kEnableCmaMediaPipeline[]; | |
| 23 | |
| 24 // Content-implementation switches | 21 // Content-implementation switches |
| 25 extern const char kEnableLocalFileAccesses[]; | 22 extern const char kEnableLocalFileAccesses[]; |
| 26 | 23 |
| 27 // Metrics switches | 24 // Metrics switches |
| 28 extern const char kOverrideMetricsUploadUrl[]; | 25 extern const char kOverrideMetricsUploadUrl[]; |
| 29 | 26 |
| 30 // Network switches | 27 // Network switches |
| 31 extern const char kNoWifi[]; | 28 extern const char kNoWifi[]; |
| 32 | 29 |
| 33 // App switches | 30 // App switches |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // --|switch_string| -> true | 64 // --|switch_string| -> true |
| 68 // --|switch_string|="true" -> true | 65 // --|switch_string|="true" -> true |
| 69 // --|switch_string|="false" -> false | 66 // --|switch_string|="false" -> false |
| 70 // no switch named |switch_string| -> |default_value| | 67 // no switch named |switch_string| -> |default_value| |
| 71 bool GetSwitchValueBoolean(const std::string& switch_string, | 68 bool GetSwitchValueBoolean(const std::string& switch_string, |
| 72 const bool default_value); | 69 const bool default_value); |
| 73 | 70 |
| 74 } // namespace chromecast | 71 } // namespace chromecast |
| 75 | 72 |
| 76 #endif // CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ | 73 #endif // CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ |
| OLD | NEW |