diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/media/base/cdm_context.h | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-85-based.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/media/base/cdm_context.h')
-rw-r--r-- | chromium/media/base/cdm_context.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/chromium/media/base/cdm_context.h b/chromium/media/base/cdm_context.h index e346698746e..b3a0d19c149 100644 --- a/chromium/media/base/cdm_context.h +++ b/chromium/media/base/cdm_context.h @@ -12,6 +12,7 @@ #include "media/media_buildflags.h" #if defined(OS_WIN) +#include <wrl/client.h> struct IMFCdmProxy; #endif @@ -90,7 +91,8 @@ class MEDIA_EXPORT CdmContext { virtual int GetCdmId() const; #if defined(OS_WIN) - using GetMediaFoundationCdmProxyCB = base::OnceCallback<void(IMFCdmProxy*)>; + using GetMediaFoundationCdmProxyCB = + base::OnceCallback<void(Microsoft::WRL::ComPtr<IMFCdmProxy>)>; // This allows a CdmContext to expose an IMFTrustedInput instance for use in // a Media Foundation rendering pipeline. This method is asynchronous because // the underlying MF-based CDM might not have a native session created yet. @@ -120,13 +122,6 @@ class MEDIA_EXPORT CdmContext { DISALLOW_COPY_AND_ASSIGN(CdmContext); }; -// Callback to notify that the CdmContext has been completely attached to -// the media pipeline. Parameter indicates whether the operation succeeded. -typedef base::OnceCallback<void(bool)> CdmAttachedCB; - -// A dummy implementation of CdmAttachedCB. -MEDIA_EXPORT void IgnoreCdmAttached(bool success); - // A reference holder to make sure the CdmContext is always valid as long as // |this| is alive. Typically |this| will hold a reference (directly or // indirectly) to the host, e.g. a ContentDecryptionModule. |