1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include "WMFClearKeyContentEnabler.h"
10 #include "WMFClearKeyUtils.h"
14 using Microsoft::WRL::ComPtr
;
16 HRESULT
WMFClearKeyContentEnabler::RuntimeClassInitialize() { return S_OK
; }
18 STDMETHODIMP
WMFClearKeyContentEnabler::AutomaticEnable() {
23 STDMETHODIMP
WMFClearKeyContentEnabler::Cancel() {
28 STDMETHODIMP
WMFClearKeyContentEnabler::GetEnableData(BYTE
** aData
,
31 // Does not support this method of content enabling with EME.
32 return MF_E_NOT_AVAILABLE
;
35 STDMETHODIMP
WMFClearKeyContentEnabler::GetEnableURL(
36 LPWSTR
* aUrl
, DWORD
* aUrlSize
, MF_URL_TRUST_STATUS
* aTrustStatus
) {
38 // Does not support this method of content enabling with EME.
39 return MF_E_NOT_AVAILABLE
;
42 STDMETHODIMP
WMFClearKeyContentEnabler::IsAutomaticSupported(BOOL
* aAutomatic
) {
51 STDMETHODIMP
WMFClearKeyContentEnabler::MonitorEnable() {
56 STDMETHODIMP
WMFClearKeyContentEnabler::GetEnableType(GUID
* aType
) {
57 LOG("WMFClearKeyContentEnabler::GetEnableType");
61 *aType
= MEDIA_FOUNDATION_CLEARKEY_GUID_CONTENT_ENABLER_TYPE
;
65 } // namespace mozilla