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

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

Issue 2816773002: Added switch for bypassing protected media identifier permission (Closed)
Patch Set: Rebasing to HEAD Created 3 years, 7 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
« no previous file with comments | « media/base/media_switches.h ('k') | no next file » | 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 #include "ppapi/features/features.h"
8 8
9 namespace switches { 9 namespace switches {
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 // Number of buffers to use for WaveOut. 61 // Number of buffers to use for WaveOut.
62 const char kWaveOutBuffers[] = "waveout-buffers"; 62 const char kWaveOutBuffers[] = "waveout-buffers";
63 #endif 63 #endif
64 64
65 #if defined(USE_CRAS) 65 #if defined(USE_CRAS)
66 // Use CRAS, the ChromeOS audio server. 66 // Use CRAS, the ChromeOS audio server.
67 const char kUseCras[] = "use-cras"; 67 const char kUseCras[] = "use-cras";
68 #endif 68 #endif
69 69
70 // For automated testing of protected content, this switch allows specific
71 // domains (e.g. example.com) to skip asking the user for permission to share
72 // their personal identifier. In this context, domain does not include the
73 // port number. This flag will have no effect if user-data-dir is not set and
74 // will not affect the user's content settings.
75 // Reference: http://crbug.com/718608
76 // Example:
77 // --unsafely-allow-protected-media-identifier-for-domain=a.com,b.ca
78 // --user-data-dir=/test/only/profile/dir
79 const char kUnsafelyAllowProtectedMediaIdentifierForDomain[] =
80 "unsafely-allow-protected-media-identifier-for-domain";
81
70 #if !defined(OS_ANDROID) || BUILDFLAG(ENABLE_PLUGINS) 82 #if !defined(OS_ANDROID) || BUILDFLAG(ENABLE_PLUGINS)
71 // Use a media session for each tabs in a way that two tabs can't play on top of 83 // Use a media session for each tabs in a way that two tabs can't play on top of
72 // each other. This is different from the Media Session API as it is enabling a 84 // each other. This is different from the Media Session API as it is enabling a
73 // default behaviour for the browser. The allowed values are: "" (empty), 85 // default behaviour for the browser. The allowed values are: "" (empty),
74 // |kEnableDefaultMediaSessionDuckFlash|. 86 // |kEnableDefaultMediaSessionDuckFlash|.
75 const char kEnableDefaultMediaSession[] = "enable-default-media-session"; 87 const char kEnableDefaultMediaSession[] = "enable-default-media-session";
76 #endif // !defined(OS_ANDROID) || BUILDFLAG(ENABLE_PLUGINS) 88 #endif // !defined(OS_ANDROID) || BUILDFLAG(ENABLE_PLUGINS)
77 89
78 #if BUILDFLAG(ENABLE_PLUGINS) 90 #if BUILDFLAG(ENABLE_PLUGINS)
79 // This value is used as an option for |kEnableDefaultMediaSession|. Flash will 91 // This value is used as an option for |kEnableDefaultMediaSession|. Flash will
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 // This is completely insecure - DO NOT USE except for testing. 256 // This is completely insecure - DO NOT USE except for testing.
245 const base::Feature kD3D11VideoDecoding{"D3D11VideoDecoding", 257 const base::Feature kD3D11VideoDecoding{"D3D11VideoDecoding",
246 base::FEATURE_DISABLED_BY_DEFAULT}; 258 base::FEATURE_DISABLED_BY_DEFAULT};
247 259
248 // Enables H264 HW encode acceleration using Media Foundation for Windows. 260 // Enables H264 HW encode acceleration using Media Foundation for Windows.
249 const base::Feature kMediaFoundationH264Encoding{ 261 const base::Feature kMediaFoundationH264Encoding{
250 "MediaFoundationH264Encoding", base::FEATURE_ENABLED_BY_DEFAULT}; 262 "MediaFoundationH264Encoding", base::FEATURE_ENABLED_BY_DEFAULT};
251 #endif // defined(OS_WIN) 263 #endif // defined(OS_WIN)
252 264
253 } // namespace media 265 } // namespace media
OLDNEW
« no previous file with comments | « media/base/media_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698