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

Unified Diff: media/base/cdm_config.h

Issue 1131753003: Plumb |use_secure_codecs| through to BrowserCdmFactoryAndroid. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update unittest. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: media/base/cdm_config.h
diff --git a/media/base/cdm_config.h b/media/base/cdm_config.h
new file mode 100644
index 0000000000000000000000000000000000000000..4b57ebb96c176982293b1bc137576184dd809d98
--- /dev/null
+++ b/media/base/cdm_config.h
@@ -0,0 +1,29 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MEDIA_BASE_CDM_CONFIG_H_
+#define MEDIA_BASE_CDM_CONFIG_H_
+
+#include "media/base/media_export.h"
+
+namespace media {
+
+// The runtime configuration for new CDM instances as computed by
+// |requestMediaKeySystemAccess|. This is in some sense the Chromium-side
+// counterpart of Blink's WebMediaKeySystemConfiguration.
+struct MEDIA_EXPORT CdmConfig {
+ // Allow access to a distinctive identifier.
+ bool allow_distinctive_identifier = false;
+
+ // Allow access to persistent state.
+ bool allow_persistent_state = false;
+
+ // Use hardware-secure codecs. This flag is only used on Android, it should
+ // always be false on other platforms.
+ bool use_hw_secure_codecs = false;
+};
+
+} // namespace media
+
+#endif // MEDIA_BASE_CDM_CONFIG_H_

Powered by Google App Engine
This is Rietveld 408576698