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

Unified Diff: media/mojo/services/mojo_cdm_factory_service.h

Issue 840473002: media: Support creation and SetCdm() for mojo based CDM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix TODO. Created 5 years, 9 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
Index: media/mojo/services/mojo_cdm_factory_service.h
diff --git a/media/mojo/services/mojo_cdm_factory_service.h b/media/mojo/services/mojo_cdm_factory_service.h
new file mode 100644
index 0000000000000000000000000000000000000000..cb349741a66233a0eac6c5675463d50a6aceb662
--- /dev/null
+++ b/media/mojo/services/mojo_cdm_factory_service.h
@@ -0,0 +1,36 @@
+// Copyright 2014 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_MOJO_SERVICES_MOJO_CDM_FACTORY_SERVICE_H_
+#define MEDIA_MOJO_SERVICES_MOJO_CDM_FACTORY_SERVICE_H_
+
+#include "base/macros.h"
+#include "media/base/media_export.h"
+#include "media/mojo/interfaces/content_decryption_module_factory.mojom.h"
+
+namespace media {
+
+class MojoCdmServiceContext;
+
+class MEDIA_EXPORT MojoCdmFactoryService
+ : public mojo::InterfaceImpl<mojo::ContentDecryptionModuleFactory> {
+ public:
+ explicit MojoCdmFactoryService(MojoCdmServiceContext* context);
+ ~MojoCdmFactoryService() final;
+
+ // mojo::InterfaceImpl<mojo::ContentDecryptionModuleFactory> implementation.
+ void Create(const mojo::String& key_system,
+ const mojo::String& security_origin,
+ int32_t cdm_id,
+ mojo::InterfaceRequest<mojo::ContentDecryptionModule> cdm) final;
+
+ private:
+ MojoCdmServiceContext* context_;
+
+ DISALLOW_COPY_AND_ASSIGN(MojoCdmFactoryService);
+};
+
+} // namespace media
+
+#endif // MEDIA_MOJO_SERVICES_MOJO_CDM_FACTORY_SERVICE_H_

Powered by Google App Engine
This is Rietveld 408576698