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

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

Issue 2816773002: Added switch for bypassing protected media identifier permission (Closed)
Patch Set: Added switch for bypassing permissions 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 allow the protected media identifier to be
xhwang 2017/05/11 18:31:49 "allows to allow" sounds a bit odd
Vaage 2017/05/11 18:48:50 Done.
72 // shared with out showing the user a permission prompt. This flag ignores the
xhwang 2017/05/11 18:31:49 nit: s/with out/without
Vaage 2017/05/11 18:48:50 Done.
73 // port number. This flag will have no effect if user-data-dir is not set.
xhwang 2017/05/11 18:31:49 Please add a comment that this will not change use
Vaage 2017/05/11 18:48:50 Done.
74 // Reference: http://crbug.com/718608
75 // Example:
76 // --unsafely-allow-protected-media-identifier-for-domain=a.com,b.ca
77 // --user-data-dir=/test/only/profile/dir
78 const char kUnsafelyAllowProtectedMediaIdentifierForDomain[] =
79 "unsafely-allow-protected-media-identifier-for-domain";
80
70 #if !defined(OS_ANDROID) || BUILDFLAG(ENABLE_PLUGINS) 81 #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 82 // 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 83 // 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), 84 // default behaviour for the browser. The allowed values are: "" (empty),
74 // |kEnableDefaultMediaSessionDuckFlash|. 85 // |kEnableDefaultMediaSessionDuckFlash|.
75 const char kEnableDefaultMediaSession[] = "enable-default-media-session"; 86 const char kEnableDefaultMediaSession[] = "enable-default-media-session";
76 #endif // !defined(OS_ANDROID) || BUILDFLAG(ENABLE_PLUGINS) 87 #endif // !defined(OS_ANDROID) || BUILDFLAG(ENABLE_PLUGINS)
77 88
78 #if BUILDFLAG(ENABLE_PLUGINS) 89 #if BUILDFLAG(ENABLE_PLUGINS)
79 // This value is used as an option for |kEnableDefaultMediaSession|. Flash will 90 // 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. 255 // This is completely insecure - DO NOT USE except for testing.
245 const base::Feature kD3D11VideoDecoding{"D3D11VideoDecoding", 256 const base::Feature kD3D11VideoDecoding{"D3D11VideoDecoding",
246 base::FEATURE_DISABLED_BY_DEFAULT}; 257 base::FEATURE_DISABLED_BY_DEFAULT};
247 258
248 // Enables H264 HW encode acceleration using Media Foundation for Windows. 259 // Enables H264 HW encode acceleration using Media Foundation for Windows.
249 const base::Feature kMediaFoundationH264Encoding{ 260 const base::Feature kMediaFoundationH264Encoding{
250 "MediaFoundationH264Encoding", base::FEATURE_ENABLED_BY_DEFAULT}; 261 "MediaFoundationH264Encoding", base::FEATURE_ENABLED_BY_DEFAULT};
251 #endif // defined(OS_WIN) 262 #endif // defined(OS_WIN)
252 263
253 } // namespace media 264 } // 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