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

Side by Side Diff: media/base/media_switches.cc

Issue 2512563003: Convert enable_plugins to a buildflag header. (Closed)
Patch Set: Merge Created 4 years 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
« no previous file with comments | « media/base/media_switches.h ('k') | ppapi/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "build/build_config.h" 5 #include "build/build_config.h"
6 #include "media/base/media_switches.h" 6 #include "media/base/media_switches.h"
7 #include "ppapi/features/features.h"
7 8
8 namespace switches { 9 namespace switches {
9 10
10 // Allow users to specify a custom buffer size for debugging purpose. 11 // Allow users to specify a custom buffer size for debugging purpose.
11 const char kAudioBufferSize[] = "audio-buffer-size"; 12 const char kAudioBufferSize[] = "audio-buffer-size";
12 13
13 // Set number of threads to use for video decoding. 14 // Set number of threads to use for video decoding.
14 const char kVideoThreads[] = "video-threads"; 15 const char kVideoThreads[] = "video-threads";
15 16
16 // Suspend media pipeline on background tabs. 17 // Suspend media pipeline on background tabs.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 60
60 // Number of buffers to use for WaveOut. 61 // Number of buffers to use for WaveOut.
61 const char kWaveOutBuffers[] = "waveout-buffers"; 62 const char kWaveOutBuffers[] = "waveout-buffers";
62 #endif 63 #endif
63 64
64 #if defined(USE_CRAS) 65 #if defined(USE_CRAS)
65 // Use CRAS, the ChromeOS audio server. 66 // Use CRAS, the ChromeOS audio server.
66 const char kUseCras[] = "use-cras"; 67 const char kUseCras[] = "use-cras";
67 #endif 68 #endif
68 69
69 #if !defined(OS_ANDROID) || defined(ENABLE_PLUGINS) 70 #if !defined(OS_ANDROID) || BUILDFLAG(ENABLE_PLUGINS)
70 // Use a media session for each tabs in a way that two tabs can't play on top of 71 // Use a media session for each tabs in a way that two tabs can't play on top of
71 // each other. This is different from the Media Session API as it is enabling a 72 // each other. This is different from the Media Session API as it is enabling a
72 // default behaviour for the browser. The allowed values are: "" (empty), 73 // default behaviour for the browser. The allowed values are: "" (empty),
73 // |kEnableDefaultMediaSessionDuckFlash|. 74 // |kEnableDefaultMediaSessionDuckFlash|.
74 const char kEnableDefaultMediaSession[] = "enable-default-media-session"; 75 const char kEnableDefaultMediaSession[] = "enable-default-media-session";
75 #endif // !defined(OS_ANDROID) || defined(ENABLE_PLUGINS) 76 #endif // !defined(OS_ANDROID) || BUILDFLAG(ENABLE_PLUGINS)
76 77
77 #if defined(ENABLE_PLUGINS) 78 #if BUILDFLAG(ENABLE_PLUGINS)
78 // This value is used as an option for |kEnableDefaultMediaSession|. Flash will 79 // This value is used as an option for |kEnableDefaultMediaSession|. Flash will
79 // be ducked when losing audio focus. 80 // be ducked when losing audio focus.
80 const char kEnableDefaultMediaSessionDuckFlash[] = "duck-flash"; 81 const char kEnableDefaultMediaSessionDuckFlash[] = "duck-flash";
81 #endif // defined(ENABLE_PLUGINS) 82 #endif // BUILDFLAG(ENABLE_PLUGINS)
82 83
83 // Use fake device for Media Stream to replace actual camera and microphone. 84 // Use fake device for Media Stream to replace actual camera and microphone.
84 const char kUseFakeDeviceForMediaStream[] = "use-fake-device-for-media-stream"; 85 const char kUseFakeDeviceForMediaStream[] = "use-fake-device-for-media-stream";
85 86
86 // Use an .y4m file to play as the webcam. See the comments in 87 // Use an .y4m file to play as the webcam. See the comments in
87 // media/capture/video/file_video_capture_device.h for more details. 88 // media/capture/video/file_video_capture_device.h for more details.
88 const char kUseFileForFakeVideoCapture[] = "use-file-for-fake-video-capture"; 89 const char kUseFileForFakeVideoCapture[] = "use-file-for-fake-video-capture";
89 90
90 // Play a .wav file as the microphone. Note that for WebRTC calls we'll treat 91 // Play a .wav file as the microphone. Note that for WebRTC calls we'll treat
91 // the bits as if they came from the microphone, which means you should disable 92 // the bits as if they came from the microphone, which means you should disable
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 const base::Feature kExternalClearKeyForTesting{ 169 const base::Feature kExternalClearKeyForTesting{
169 "external-clear-key-for-testing", base::FEATURE_DISABLED_BY_DEFAULT}; 170 "external-clear-key-for-testing", base::FEATURE_DISABLED_BY_DEFAULT};
170 171
171 #if defined(OS_ANDROID) 172 #if defined(OS_ANDROID)
172 // Replaces WPMA by the MediaPlayerRenderer for HLS and fallback playback. 173 // Replaces WPMA by the MediaPlayerRenderer for HLS and fallback playback.
173 const base::Feature kAndroidMediaPlayerRenderer{ 174 const base::Feature kAndroidMediaPlayerRenderer{
174 "android-media-player-renderer", base::FEATURE_ENABLED_BY_DEFAULT}; 175 "android-media-player-renderer", base::FEATURE_ENABLED_BY_DEFAULT};
175 #endif 176 #endif
176 177
177 } // namespace media 178 } // namespace media
OLDNEW
« no previous file with comments | « media/base/media_switches.h ('k') | ppapi/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698