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

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

Issue 2582463003: media: Verify CDM Host files (Closed)
Patch Set: Polished! Created 3 years, 11 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 (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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 const char kEnableVp9InMp4[] = "enable-vp9-in-mp4"; 119 const char kEnableVp9InMp4[] = "enable-vp9-in-mp4";
120 120
121 // Force media player using SurfaceView instead of SurfaceTexture on Android. 121 // Force media player using SurfaceView instead of SurfaceTexture on Android.
122 const char kForceVideoOverlays[] = "force-video-overlays"; 122 const char kForceVideoOverlays[] = "force-video-overlays";
123 123
124 // Allows explicitly specifying MSE audio/video buffer sizes. 124 // Allows explicitly specifying MSE audio/video buffer sizes.
125 // Default values are 150M for video and 12M for audio. 125 // Default values are 150M for video and 12M for audio.
126 const char kMSEAudioBufferSizeLimit[] = "mse-audio-buffer-size-limit"; 126 const char kMSEAudioBufferSizeLimit[] = "mse-audio-buffer-size-limit";
127 const char kMSEVideoBufferSizeLimit[] = "mse-video-buffer-size-limit"; 127 const char kMSEVideoBufferSizeLimit[] = "mse-video-buffer-size-limit";
128 128
129 // By default, if any CDM host (including signature) file is missing, function
130 // VerifyHostFiles() on the CDM will not be called. Enable this switch to ignore
131 // missing CDM host files for testing purpose.
132 const char kIgnoreMissingCdmHostFileForTesting[] =
133 "ignore-missing-cdm-host-file-for-testing";
134
129 } // namespace switches 135 } // namespace switches
130 136
131 namespace media { 137 namespace media {
132 138
133 #if defined(OS_WIN) 139 #if defined(OS_WIN)
134 // Enables video decode acceleration using the D3D11 video decoder api. 140 // Enables video decode acceleration using the D3D11 video decoder api.
135 // This is completely insecure - DO NOT USE except for testing. 141 // This is completely insecure - DO NOT USE except for testing.
136 const base::Feature kD3D11VideoDecoding{"D3D11VideoDecoding", 142 const base::Feature kD3D11VideoDecoding{"D3D11VideoDecoding",
137 base::FEATURE_DISABLED_BY_DEFAULT}; 143 base::FEATURE_DISABLED_BY_DEFAULT};
138 144
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // Replaces WPMA by the MediaPlayerRenderer for HLS and fallback playback. 192 // Replaces WPMA by the MediaPlayerRenderer for HLS and fallback playback.
187 const base::Feature kAndroidMediaPlayerRenderer{ 193 const base::Feature kAndroidMediaPlayerRenderer{
188 "android-media-player-renderer", base::FEATURE_ENABLED_BY_DEFAULT}; 194 "android-media-player-renderer", base::FEATURE_ENABLED_BY_DEFAULT};
189 195
190 // Lock the screen orientation when a video goes fullscreen. 196 // Lock the screen orientation when a video goes fullscreen.
191 const base::Feature kVideoFullscreenOrientationLock{ 197 const base::Feature kVideoFullscreenOrientationLock{
192 "VideoFullscreenOrientationLock", base::FEATURE_ENABLED_BY_DEFAULT}; 198 "VideoFullscreenOrientationLock", base::FEATURE_ENABLED_BY_DEFAULT};
193 #endif 199 #endif
194 200
195 } // namespace media 201 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698