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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 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_CDM_CDM_ADAPTER_FACTORY_H_
6 #define MEDIA_CDM_CDM_ADAPTER_FACTORY_H_
7
8 #include "base/macros.h"
9 #include "media/base/cdm_factory.h"
10 #include "media/base/media_export.h"
11 #include "media/cdm/cdm_allocator.h"
12
13 namespace media {
14
15 class MEDIA_EXPORT CdmAdapterFactory final : public CdmFactory {
16 public:
17 explicit CdmAdapterFactory(CdmAllocator::CreationCB allocator_creation_cb);
18 ~CdmAdapterFactory() override;
19
20 // CdmFactory implementation.
21 void Create(const std::string& key_system,
22 const GURL& security_origin,
23 const CdmConfig& cdm_config,
24 const SessionMessageCB& session_message_cb,
25 const SessionClosedCB& session_closed_cb,
26 const SessionKeysChangeCB& session_keys_change_cb,
27 const SessionExpirationUpdateCB& session_expiration_update_cb,
28 const CdmCreatedCB& cdm_created_cb) override;
29
30 private:
31 // Callback to create CdmAllocator for the created CDM.
32 CdmAllocator::CreationCB allocator_creation_cb_;
33
34 DISALLOW_COPY_AND_ASSIGN(CdmAdapterFactory);
35 };
36
37 } // namespace media
38
39 #endif // MEDIA_CDM_CDM_ADAPTER_FACTORY_H_
OLDNEW
« 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