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

Side by Side 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: rebase only; compiles but needs more polish... Created 5 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_MOJO_SERVICES_MOJO_CDM_FACTORY_SERVICE_H_
6 #define MEDIA_MOJO_SERVICES_MOJO_CDM_FACTORY_SERVICE_H_
7
8 #include "base/macros.h"
9 #include "media/base/media_export.h"
10 #include "media/mojo/interfaces/content_decryption_module_factory.mojom.h"
11
12 namespace media {
13
14 class MojoCdmServiceContext;
15
16 class MEDIA_EXPORT MojoCdmFactoryService
17 : public mojo::ContentDecryptionModuleFactory {
18 public:
19 MojoCdmFactoryService(
20 MojoCdmServiceContext* context,
21 mojo::InterfaceRequest<mojo::ContentDecryptionModuleFactory> request);
22 ~MojoCdmFactoryService() final;
23
24 // mojo::InterfaceImpl<mojo::ContentDecryptionModuleFactory> implementation.
25 void Create(
26 const mojo::String& key_system,
27 const mojo::String& security_origin,
28 int32_t cdm_id,
29 mojo::InterfaceRequest<mojo::ContentDecryptionModule> request) final;
30
31 private:
32 mojo::Binding<mojo::ContentDecryptionModuleFactory> binding_;
33
34 MojoCdmServiceContext* context_;
35
36 DISALLOW_COPY_AND_ASSIGN(MojoCdmFactoryService);
37 };
38
39 } // namespace media
40
41 #endif // MEDIA_MOJO_SERVICES_MOJO_CDM_FACTORY_SERVICE_H_
OLDNEW
« no previous file with comments | « media/mojo/services/mojo_cdm_factory.cc ('k') | media/mojo/services/mojo_cdm_factory_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698