Bug 1245789 - Add WebIDL dict definition for Widevine manifest JSON file. r=bz,a=ritu
authorChris Pearce <cpearce@mozilla.com>
Tue, 12 Apr 2016 16:12:20 +1200
changeset 325934 f1d62a2c836c5354b6faab06e58fd635b139512f
parent 325933 b34d86f5ecca394aa35682059b5b19473c6226a7
child 325935 46901779c9a370bf2dedc0187d16c0b99f9826ae
push id1128
push userjlund@mozilla.com
push dateWed, 01 Jun 2016 01:31:59 +0000
treeherdermozilla-release@fe0d30de989d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz, ritu
bugs1245789
milestone47.0a2
Bug 1245789 - Add WebIDL dict definition for Widevine manifest JSON file. r=bz,a=ritu The Widevine CDM has an accompanying manifest file which is in JSON format, so I use this WebIDL dict to parse the manifest file in a later patch in this series. MozReview-Commit-ID: EoPSEciHVKh
dom/webidl/WidevineCDMManifest.webidl
dom/webidl/moz.build
new file mode 100644
--- /dev/null
+++ b/dom/webidl/WidevineCDMManifest.webidl
@@ -0,0 +1,15 @@
+/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+dictionary WidevineCDMManifest {
+  required DOMString name;
+  required DOMString description;
+  required DOMString version;
+  required DOMString x-cdm-module-versions;
+  required DOMString x-cdm-interface-versions;
+  required DOMString x-cdm-host-versions;
+  required DOMString x-cdm-codecs;
+};
--- a/dom/webidl/moz.build
+++ b/dom/webidl/moz.build
@@ -906,16 +906,17 @@ if CONFIG['MOZ_EME']:
         'MediaEncryptedEvent.webidl',
         'MediaKeyError.webidl',
         'MediaKeyMessageEvent.webidl',
         'MediaKeys.webidl',
         'MediaKeySession.webidl',
         'MediaKeysRequestStatus.webidl',
         'MediaKeyStatusMap.webidl',
         'MediaKeySystemAccess.webidl',
+        'WidevineCDMManifest.webidl',
     ]
 
 if CONFIG['MOZ_PAY']:
     WEBIDL_FILES += [
         'MozPaymentProvider.webidl'
     ]
 
 if CONFIG['MOZ_B2G']: