| OLD | NEW |
| 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 #include "ppapi/features/features.h" |
| 8 | 8 |
| 9 namespace switches { | 9 namespace switches { |
| 10 | 10 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 // Number of buffers to use for WaveOut. | 58 // Number of buffers to use for WaveOut. |
| 59 const char kWaveOutBuffers[] = "waveout-buffers"; | 59 const char kWaveOutBuffers[] = "waveout-buffers"; |
| 60 #endif | 60 #endif |
| 61 | 61 |
| 62 #if defined(USE_CRAS) | 62 #if defined(USE_CRAS) |
| 63 // Use CRAS, the ChromeOS audio server. | 63 // Use CRAS, the ChromeOS audio server. |
| 64 const char kUseCras[] = "use-cras"; | 64 const char kUseCras[] = "use-cras"; |
| 65 #endif | 65 #endif |
| 66 | 66 |
| 67 // For automated testing of protected content, this switch allows specific |
| 68 // domains (e.g. example.com) to skip asking the user for permission to share |
| 69 // their personal identifier. In this context, domain does not include the |
| 70 // port number. This flag will have no effect if user-data-dir is not set and |
| 71 // will not affect the user's content settings. |
| 72 // Reference: http://crbug.com/718608 |
| 73 // Example: |
| 74 // --unsafely-allow-protected-media-identifier-for-domain=a.com,b.ca |
| 75 // --user-data-dir=/test/only/profile/dir |
| 76 const char kUnsafelyAllowProtectedMediaIdentifierForDomain[] = |
| 77 "unsafely-allow-protected-media-identifier-for-domain"; |
| 78 |
| 67 #if !defined(OS_ANDROID) || BUILDFLAG(ENABLE_PLUGINS) | 79 #if !defined(OS_ANDROID) || BUILDFLAG(ENABLE_PLUGINS) |
| 68 // Use a media session for each tabs in a way that two tabs can't play on top of | 80 // Use a media session for each tabs in a way that two tabs can't play on top of |
| 69 // each other. This is different from the Media Session API as it is enabling a | 81 // each other. This is different from the Media Session API as it is enabling a |
| 70 // default behaviour for the browser. The allowed values are: "" (empty), | 82 // default behaviour for the browser. The allowed values are: "" (empty), |
| 71 // |kEnableDefaultMediaSessionDuckFlash|. | 83 // |kEnableDefaultMediaSessionDuckFlash|. |
| 72 const char kEnableDefaultMediaSession[] = "enable-default-media-session"; | 84 const char kEnableDefaultMediaSession[] = "enable-default-media-session"; |
| 73 #endif // !defined(OS_ANDROID) || BUILDFLAG(ENABLE_PLUGINS) | 85 #endif // !defined(OS_ANDROID) || BUILDFLAG(ENABLE_PLUGINS) |
| 74 | 86 |
| 75 #if BUILDFLAG(ENABLE_PLUGINS) | 87 #if BUILDFLAG(ENABLE_PLUGINS) |
| 76 // This value is used as an option for |kEnableDefaultMediaSession|. Flash will | 88 // This value is used as an option for |kEnableDefaultMediaSession|. Flash will |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 | 220 |
| 209 // An experimental feature to enable persistent-license type support in MediaDrm | 221 // An experimental feature to enable persistent-license type support in MediaDrm |
| 210 // when using Encrypted Media Extensions (EME) API. | 222 // when using Encrypted Media Extensions (EME) API. |
| 211 // TODO(xhwang): Remove this after feature launch. See http://crbug.com/493521 | 223 // TODO(xhwang): Remove this after feature launch. See http://crbug.com/493521 |
| 212 const base::Feature kMediaDrmPersistentLicense{ | 224 const base::Feature kMediaDrmPersistentLicense{ |
| 213 "MediaDrmPersistentLicense", base::FEATURE_DISABLED_BY_DEFAULT}; | 225 "MediaDrmPersistentLicense", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 214 | 226 |
| 215 #endif | 227 #endif |
| 216 | 228 |
| 217 } // namespace media | 229 } // namespace media |
| OLD | NEW |