Chromium Code Reviews| 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> | |
| 9 | |
| 8 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 9 | 11 |
| 10 namespace switches { | 12 namespace switches { |
| 11 | 13 |
| 12 // Media switches | 14 // Media switches |
| 13 extern const char kEnableCmaMediaPipeline[]; | 15 extern const char kEnableCmaMediaPipeline[]; |
| 14 extern const char kHdmiSinkSupportedCodecs[]; | 16 extern const char kHdmiSinkSupportedCodecs[]; |
| 15 | 17 |
| 16 // Content-implementation switches | 18 // Content-implementation switches |
| 17 extern const char kEnableLocalFileAccesses[]; | 19 extern const char kEnableLocalFileAccesses[]; |
| 18 | 20 |
| 19 // Metrics switches | 21 // Metrics switches |
| 20 extern const char kOverrideMetricsUploadUrl[]; | 22 extern const char kOverrideMetricsUploadUrl[]; |
| 21 | 23 |
| 22 // Network switches | 24 // Network switches |
| 23 extern const char kNoWifi[]; | 25 extern const char kNoWifi[]; |
| 24 | 26 |
| 25 // App switches | 27 // App switches |
| 26 extern const char kAllowHiddenMediaPlayback[]; | 28 extern const char kAllowHiddenMediaPlayback[]; |
| 27 | 29 |
| 28 // Switches to communicate app state information | 30 // Switches to communicate app state information |
| 29 extern const char kLastLaunchedApp[]; | 31 extern const char kLastLaunchedApp[]; |
| 30 extern const char kPreviousApp[]; | 32 extern const char kPreviousApp[]; |
| 31 | 33 |
| 34 // DONOTSUBMIT what kind of switch is this | |
|
halliwell
2016/03/05 01:01:51
DONOTSUBMIT :)
jyw
2016/03/08 02:09:24
Done.
| |
| 35 extern const char kAcceptResourceProvider[]; | |
| 36 | |
| 32 // ALSA-based CMA switches. (Only valid for audio products.) | 37 // ALSA-based CMA switches. (Only valid for audio products.) |
| 33 extern const char kAlsaOutputBufferSize[]; | 38 extern const char kAlsaOutputBufferSize[]; |
| 34 extern const char kAlsaOutputPeriodSize[]; | 39 extern const char kAlsaOutputPeriodSize[]; |
| 35 extern const char kAlsaOutputStartThreshold[]; | 40 extern const char kAlsaOutputStartThreshold[]; |
| 36 extern const char kAlsaOutputAvailMin[]; | 41 extern const char kAlsaOutputAvailMin[]; |
| 37 extern const char kAlsaCheckCloseTimeout[]; | 42 extern const char kAlsaCheckCloseTimeout[]; |
| 38 extern const char kAlsaNumOutputChannels[]; | 43 extern const char kAlsaNumOutputChannels[]; |
| 39 | 44 |
| 40 } // namespace switches | 45 } // namespace switches |
| 41 | 46 |
| 47 namespace base { | |
|
halliwell
2016/03/05 01:01:51
I don't think we should be putting code in chromec
jyw
2016/03/08 02:09:24
Done.
| |
| 48 | |
| 49 // Gets boolean value from switch |switch_string|. Returns true if value | |
| 50 // is present and is not "false". Returns false otherwise. | |
| 51 bool GetSwitchValueBoolean(const std::string& switch_string); | |
| 52 | |
| 53 // Gets whether the switch |switch_string| is explicitly set to "false" for | |
| 54 // the current process. | |
| 55 bool IsSwitchExplicitFalse(const std::string& switch_string); | |
| 56 | |
| 57 } // namespace base | |
| 58 | |
| 42 #endif // CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ | 59 #endif // CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ |
| OLD | NEW |