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

Unified Diff: media/cdm/cdm_allocator.h

Issue 2900773004: media: Add experimental feature to enable Mojo CDM on desktop Chromium (Closed)
Patch Set: drop utility_process_host_impl.cc change Created 3 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
« no previous file with comments | « media/cdm/cdm_adapter_factory.cc ('k') | media/media_options.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cdm/cdm_allocator.h
diff --git a/media/cdm/cdm_allocator.h b/media/cdm/cdm_allocator.h
index b06baac14ca2e7edd4be2671b03debcfa9c18b05..a15b92f14e177b2875689df37de113e413d7a65f 100644
--- a/media/cdm/cdm_allocator.h
+++ b/media/cdm/cdm_allocator.h
@@ -10,6 +10,7 @@
#include <memory>
+#include "base/callback.h"
#include "base/macros.h"
#include "media/base/media_export.h"
@@ -23,6 +24,9 @@ class VideoFrameImpl;
class MEDIA_EXPORT CdmAllocator {
public:
+ // Callback to create CdmAllocator for the created CDM.
+ using CreationCB = base::RepeatingCallback<std::unique_ptr<CdmAllocator>()>;
+
virtual ~CdmAllocator();
// Creates a buffer with at least |capacity| bytes. Caller is required to
« no previous file with comments | « media/cdm/cdm_adapter_factory.cc ('k') | media/media_options.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698