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

Unified Diff: chromecast/base/chromecast_switches.h

Issue 1767603003: [chromecast] Add cast_shell --accept-resource-provider switch (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: bool -> int Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chromecast/base/chromecast_switches.cc » ('j') | chromecast/base/chromecast_switches.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/base/chromecast_switches.h
diff --git a/chromecast/base/chromecast_switches.h b/chromecast/base/chromecast_switches.h
index 0d3094ab6d0bdba2b40a8cd81525d6dbf10acd79..a784312484944093ece6cd77756c8fdbc867f814 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[];
+// DONOTSUBMIT what kind of switch is this
halliwell 2016/03/05 01:01:51 DONOTSUBMIT :)
jyw 2016/03/08 02:09:24 Done.
+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 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.
+
+// Gets boolean value from switch |switch_string|. Returns true if value
+// is present and is not "false". Returns false otherwise.
+bool GetSwitchValueBoolean(const std::string& switch_string);
+
+// Gets whether the switch |switch_string| is explicitly set to "false" for
+// the current process.
+bool IsSwitchExplicitFalse(const std::string& switch_string);
+
+} // namespace base
+
#endif // CHROMECAST_BASE_CHROMECAST_SWITCHES_H_
« no previous file with comments | « no previous file | chromecast/base/chromecast_switches.cc » ('j') | chromecast/base/chromecast_switches.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698