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

Unified Diff: media/cdm/cdm_adapter_factory.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/base/media_switches.cc ('k') | media/cdm/cdm_adapter_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cdm/cdm_adapter_factory.h
diff --git a/media/cdm/cdm_adapter_factory.h b/media/cdm/cdm_adapter_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..f23cb69aae17068cba89ff8433323a2ac11e7ef2
--- /dev/null
+++ b/media/cdm/cdm_adapter_factory.h
@@ -0,0 +1,39 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MEDIA_CDM_CDM_ADAPTER_FACTORY_H_
+#define MEDIA_CDM_CDM_ADAPTER_FACTORY_H_
+
+#include "base/macros.h"
+#include "media/base/cdm_factory.h"
+#include "media/base/media_export.h"
+#include "media/cdm/cdm_allocator.h"
+
+namespace media {
+
+class MEDIA_EXPORT CdmAdapterFactory final : public CdmFactory {
+ public:
+ explicit CdmAdapterFactory(CdmAllocator::CreationCB allocator_creation_cb);
+ ~CdmAdapterFactory() override;
+
+ // CdmFactory implementation.
+ void Create(const std::string& key_system,
+ const GURL& security_origin,
+ const CdmConfig& cdm_config,
+ const SessionMessageCB& session_message_cb,
+ const SessionClosedCB& session_closed_cb,
+ const SessionKeysChangeCB& session_keys_change_cb,
+ const SessionExpirationUpdateCB& session_expiration_update_cb,
+ const CdmCreatedCB& cdm_created_cb) override;
+
+ private:
+ // Callback to create CdmAllocator for the created CDM.
+ CdmAllocator::CreationCB allocator_creation_cb_;
+
+ DISALLOW_COPY_AND_ASSIGN(CdmAdapterFactory);
+};
+
+} // namespace media
+
+#endif // MEDIA_CDM_CDM_ADAPTER_FACTORY_H_
« no previous file with comments | « media/base/media_switches.cc ('k') | media/cdm/cdm_adapter_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698