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

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: comments addressed/replied Created 5 years, 11 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 #include "mojo/public/cpp/bindings/interface_impl.h"
12
13 namespace media {
14
15 class MojoCdmServiceContext;
16
17 class MEDIA_EXPORT MojoCdmFactoryService
18 : public mojo::InterfaceImpl<mojo::ContentDecryptionModuleFactory> {
19 public:
20 explicit MojoCdmFactoryService(MojoCdmServiceContext* context);
21 ~MojoCdmFactoryService() final;
22
23 // mojo::InterfaceImpl<mojo::ContentDecryptionModuleFactory> implementation.
24 void Create(const mojo::String& key_system,
25 const mojo::String& security_origin,
26 int32_t cdm_id,
27 mojo::InterfaceRequest<mojo::ContentDecryptionModule> cdm) final;
28
29 private:
30 MojoCdmServiceContext* context_;
31
32 DISALLOW_COPY_AND_ASSIGN(MojoCdmFactoryService);
33 };
34
35 } // namespace media
36
37 #endif // MEDIA_MOJO_SERVICES_MOJO_CDM_FACTORY_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698