Chromium Code Reviews| Index: chromecast/base/chromecast_switches.h |
| diff --git a/chromecast/base/chromecast_switches.h b/chromecast/base/chromecast_switches.h |
| index 0d3094ab6d0bdba2b40a8cd81525d6dbf10acd79..8ef81b826fb1bbf066b6fe239a3b3ebf54d31274 100644 |
| --- a/chromecast/base/chromecast_switches.h |
| +++ b/chromecast/base/chromecast_switches.h |
| @@ -5,6 +5,8 @@ |
| #ifndef CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ |
| #define CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ |
| +#include <string> |
| + |
| #include "build/build_config.h" |
| namespace switches { |
| @@ -29,6 +31,9 @@ extern const char kAllowHiddenMediaPlayback[]; |
| extern const char kLastLaunchedApp[]; |
| extern const char kPreviousApp[]; |
| +// Cast Receiver switches |
| +extern const char kAcceptResourceProvider[]; |
| + |
| // ALSA-based CMA switches. (Only valid for audio products.) |
| extern const char kAlsaOutputBufferSize[]; |
| extern const char kAlsaOutputPeriodSize[]; |
| @@ -39,4 +44,16 @@ extern const char kAlsaNumOutputChannels[]; |
| } // namespace switches |
| +namespace cast { |
| + |
|
halliwell
2016/03/08 04:29:42
It should be 'chromecast' for consistency.
jyw
2016/03/08 22:40:51
Done.
|
| +// Gets boolean value from switch |switch_string|. |
| +// --|switch_string| -> true |
| +// --|switch_string|="true" -> true |
| +// --|switch_string|="false" -> false |
| +// no switch named |switch_string| -> |default_value| |
| +bool GetSwitchValueBoolean(const std::string& switch_string, |
| + const bool default_value); |
| + |
| +} // namespace cast |
| + |
| #endif // CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ |