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

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: remove ret variable 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
14 // Switch values
15 extern const char kSwitchValueTrue[];
16 extern const char kSwitchValueFalse[];
17
12 // Media switches 18 // Media switches
13 extern const char kEnableCmaMediaPipeline[]; 19 extern const char kEnableCmaMediaPipeline[];
14 extern const char kHdmiSinkSupportedCodecs[]; 20 extern const char kHdmiSinkSupportedCodecs[];
15 21
16 // Content-implementation switches 22 // Content-implementation switches
17 extern const char kEnableLocalFileAccesses[]; 23 extern const char kEnableLocalFileAccesses[];
18 24
19 // Metrics switches 25 // Metrics switches
20 extern const char kOverrideMetricsUploadUrl[]; 26 extern const char kOverrideMetricsUploadUrl[];
21 27
22 // Network switches 28 // Network switches
23 extern const char kNoWifi[]; 29 extern const char kNoWifi[];
24 30
25 // App switches 31 // App switches
26 extern const char kAllowHiddenMediaPlayback[]; 32 extern const char kAllowHiddenMediaPlayback[];
27 33
28 // Switches to communicate app state information 34 // Switches to communicate app state information
29 extern const char kLastLaunchedApp[]; 35 extern const char kLastLaunchedApp[];
30 extern const char kPreviousApp[]; 36 extern const char kPreviousApp[];
31 37
38 // Cast Receiver switches
39 extern const char kAcceptResourceProvider[];
40
32 // ALSA-based CMA switches. (Only valid for audio products.) 41 // ALSA-based CMA switches. (Only valid for audio products.)
33 extern const char kAlsaOutputBufferSize[]; 42 extern const char kAlsaOutputBufferSize[];
34 extern const char kAlsaOutputPeriodSize[]; 43 extern const char kAlsaOutputPeriodSize[];
35 extern const char kAlsaOutputStartThreshold[]; 44 extern const char kAlsaOutputStartThreshold[];
36 extern const char kAlsaOutputAvailMin[]; 45 extern const char kAlsaOutputAvailMin[];
37 extern const char kAlsaCheckCloseTimeout[]; 46 extern const char kAlsaCheckCloseTimeout[];
38 extern const char kAlsaNumOutputChannels[]; 47 extern const char kAlsaNumOutputChannels[];
39 48
40 } // namespace switches 49 } // namespace switches
41 50
51 namespace chromecast {
52
53 // Gets boolean value from switch |switch_string|.
54 // --|switch_string| -> true
55 // --|switch_string|="true" -> true
56 // --|switch_string|="false" -> false
57 // no switch named |switch_string| -> |default_value|
58 bool GetSwitchValueBoolean(const std::string& switch_string,
59 const bool default_value);
60
61 } // namespace chromecast
62
42 #endif // CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ 63 #endif // CHROMECAST_BASE_CHROMECAST_SWITCHES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698