Backed out 2 changesets (bug 1879680) for causing spidermonkey failures on dumpValue...
[gecko.git] / media / wmf-clearkey / WMFClearKeyActivate.cpp
blob494e58d92202943f698062767c875663c3b8cb7c
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 "WMFClearKeyActivate.h"
7 #include <mfapi.h>
8 #include <mferror.h>
10 #include "WMFClearKeyContentEnabler.h"
11 #include "WMFClearKeyUtils.h"
13 namespace mozilla {
15 using Microsoft::WRL::ComPtr;
16 using Microsoft::WRL::MakeAndInitialize;
18 HRESULT WMFClearKeyActivate::RuntimeClassInitialize() { return S_OK; }
20 STDMETHODIMP WMFClearKeyActivate::ActivateObject(REFIID aRiid, void** aPpv) {
21 ENTRY_LOG();
22 ComPtr<IMFContentEnabler> contentEnabler;
23 RETURN_IF_FAILED(
24 MakeAndInitialize<WMFClearKeyContentEnabler>(&contentEnabler));
25 RETURN_IF_FAILED(contentEnabler.CopyTo(aRiid, aPpv));
26 return S_OK;
29 STDMETHODIMP WMFClearKeyActivate::ShutdownObject() {
30 NOT_IMPLEMENTED();
31 return E_NOTIMPL;
34 STDMETHODIMP WMFClearKeyActivate::DetachObject() {
35 NOT_IMPLEMENTED();
36 return E_NOTIMPL;
39 // IMFAttributes inherited by IMFActivate
40 STDMETHODIMP WMFClearKeyActivate::GetItem(REFGUID aGuidKey,
41 PROPVARIANT* aValue) {
42 NOT_IMPLEMENTED();
43 return E_NOTIMPL;
46 STDMETHODIMP WMFClearKeyActivate::GetItemType(REFGUID aGuidKey,
47 MF_ATTRIBUTE_TYPE* aType) {
48 NOT_IMPLEMENTED();
49 return E_NOTIMPL;
52 STDMETHODIMP WMFClearKeyActivate::CompareItem(REFGUID aGuidKey,
53 REFPROPVARIANT aValue,
54 BOOL* aResult) {
55 NOT_IMPLEMENTED();
56 return E_NOTIMPL;
59 STDMETHODIMP WMFClearKeyActivate::Compare(IMFAttributes* aAttributes,
60 MF_ATTRIBUTES_MATCH_TYPE aType,
61 BOOL* aResult) {
62 NOT_IMPLEMENTED();
63 return E_NOTIMPL;
66 STDMETHODIMP WMFClearKeyActivate::GetUINT32(REFGUID aGuidKey, UINT32* aValue) {
67 NOT_IMPLEMENTED();
68 return E_NOTIMPL;
71 STDMETHODIMP WMFClearKeyActivate::GetUINT64(REFGUID aGuidKey, UINT64* aValue) {
72 NOT_IMPLEMENTED();
73 return E_NOTIMPL;
76 STDMETHODIMP WMFClearKeyActivate::GetDouble(REFGUID aGuidKey, double* aValue) {
77 NOT_IMPLEMENTED();
78 return E_NOTIMPL;
81 STDMETHODIMP WMFClearKeyActivate::GetGUID(REFGUID aGuidKey, GUID* aGuidValue) {
82 NOT_IMPLEMENTED();
83 return E_NOTIMPL;
86 STDMETHODIMP WMFClearKeyActivate::GetStringLength(REFGUID aGuidKey,
87 UINT32* aPcchLength) {
88 NOT_IMPLEMENTED();
89 return E_NOTIMPL;
92 STDMETHODIMP WMFClearKeyActivate::GetString(REFGUID aGuidKey, LPWSTR aPwszValue,
93 UINT32 aCchBufSize,
94 UINT32* aPcchLength) {
95 NOT_IMPLEMENTED();
96 return E_NOTIMPL;
99 STDMETHODIMP WMFClearKeyActivate::GetAllocatedString(REFGUID aGuidKey,
100 LPWSTR* aPpwszValue,
101 UINT32* aPcchLength) {
102 NOT_IMPLEMENTED();
103 return E_NOTIMPL;
106 STDMETHODIMP WMFClearKeyActivate::GetBlobSize(REFGUID aGuidKey,
107 UINT32* aPcbBlobSize) {
108 NOT_IMPLEMENTED();
109 return E_NOTIMPL;
112 STDMETHODIMP WMFClearKeyActivate::GetBlob(REFGUID aGuidKey, UINT8* pBuf,
113 UINT32 aCbBufSize,
114 UINT32* aPcbBlobSize) {
115 NOT_IMPLEMENTED();
116 return E_NOTIMPL;
119 STDMETHODIMP WMFClearKeyActivate::GetAllocatedBlob(REFGUID aGuidKey,
120 UINT8** aBuf,
121 UINT32* aPcbSize) {
122 NOT_IMPLEMENTED();
123 return E_NOTIMPL;
126 STDMETHODIMP WMFClearKeyActivate::GetUnknown(REFGUID aGuidKey, REFIID aRiid,
127 LPVOID* aPpv) {
128 NOT_IMPLEMENTED();
129 return E_NOTIMPL;
132 STDMETHODIMP WMFClearKeyActivate::SetItem(REFGUID aGuidKey,
133 REFPROPVARIANT aValue) {
134 NOT_IMPLEMENTED();
135 return E_NOTIMPL;
138 STDMETHODIMP WMFClearKeyActivate::DeleteItem(REFGUID aGuidKey) {
139 NOT_IMPLEMENTED();
140 return E_NOTIMPL;
143 STDMETHODIMP WMFClearKeyActivate::DeleteAllItems() {
144 NOT_IMPLEMENTED();
145 return E_NOTIMPL;
148 STDMETHODIMP WMFClearKeyActivate::SetUINT32(REFGUID aGuidKey, UINT32 aValue) {
149 NOT_IMPLEMENTED();
150 return E_NOTIMPL;
153 STDMETHODIMP WMFClearKeyActivate::SetUINT64(REFGUID aGuidKey, UINT64 aValue) {
154 NOT_IMPLEMENTED();
155 return E_NOTIMPL;
158 STDMETHODIMP WMFClearKeyActivate::SetDouble(REFGUID aGuidKey, double aValue) {
159 NOT_IMPLEMENTED();
160 return E_NOTIMPL;
163 STDMETHODIMP WMFClearKeyActivate::SetGUID(REFGUID aGuidKey,
164 REFGUID aGuidValue) {
165 NOT_IMPLEMENTED();
166 return E_NOTIMPL;
169 STDMETHODIMP WMFClearKeyActivate::SetString(REFGUID aGuidKey,
170 LPCWSTR aWszValue) {
171 NOT_IMPLEMENTED();
172 return E_NOTIMPL;
175 STDMETHODIMP WMFClearKeyActivate::SetBlob(REFGUID aGuidKey, const UINT8* aBuf,
176 UINT32 aCbBufSize) {
177 NOT_IMPLEMENTED();
178 return E_NOTIMPL;
181 STDMETHODIMP WMFClearKeyActivate::SetUnknown(REFGUID aGuidKey,
182 IUnknown* aUnknown) {
183 NOT_IMPLEMENTED();
184 return E_NOTIMPL;
187 STDMETHODIMP WMFClearKeyActivate::LockStore() {
188 NOT_IMPLEMENTED();
189 return E_NOTIMPL;
192 STDMETHODIMP WMFClearKeyActivate::UnlockStore() {
193 NOT_IMPLEMENTED();
194 return E_NOTIMPL;
197 STDMETHODIMP WMFClearKeyActivate::GetCount(UINT32* aPcItems) {
198 NOT_IMPLEMENTED();
199 return E_NOTIMPL;
202 STDMETHODIMP WMFClearKeyActivate::GetItemByIndex(UINT32 aIndex, GUID* aGuidKey,
203 PROPVARIANT* aValue) {
204 NOT_IMPLEMENTED();
205 return E_NOTIMPL;
208 STDMETHODIMP WMFClearKeyActivate::CopyAllItems(IMFAttributes* aDest) {
209 NOT_IMPLEMENTED();
210 return E_NOTIMPL;
213 } // namespace mozilla