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

Side by Side 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: use kSwitchValue{True,False} and fix DONOTSUBMIT comment Created 4 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 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 // Cast Receiver switches
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 cast {
48
halliwell 2016/03/08 04:29:42 It should be 'chromecast' for consistency.
jyw 2016/03/08 22:40:51 Done.
49 // Gets boolean value from switch |switch_string|.
50 // --|switch_string| -> true
51 // --|switch_string|="true" -> true
52 // --|switch_string|="false" -> false
53 // no switch named |switch_string| -> |default_value|
54 bool GetSwitchValueBoolean(const std::string& switch_string,
55 const bool default_value);
56
57 } // namespace cast
58
42 #endif // CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ 59 #endif // CHROMECAST_BASE_CHROMECAST_SWITCHES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698