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

Side by Side Diff: content/public/browser/cdm_registry.h

Issue 2565853003: media: Rename CdmService to CdmRegistry (Closed)
Patch Set: add missing BUILD.gn entry Created 4 years 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_CDM_SERVICE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CDM_REGISTRY_H_
6 #define CONTENT_PUBLIC_BROWSER_CDM_SERVICE_H_ 6 #define CONTENT_PUBLIC_BROWSER_CDM_REGISTRY_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 struct CdmInfo; 14 struct CdmInfo;
15 15
16 // Keeps track of the Content Decryption Modules that are available. 16 // Keeps track of the Content Decryption Modules that are available.
17 class CONTENT_EXPORT CdmService { 17 class CONTENT_EXPORT CdmRegistry {
18 public: 18 public:
19 // Returns the CdmService singleton. 19 // Returns the CdmRegistry singleton.
20 static CdmService* GetInstance(); 20 static CdmRegistry* GetInstance();
21 21
22 virtual ~CdmService() {} 22 virtual ~CdmRegistry() {}
23 23
24 // Must be called on the instance to finish initialization. 24 // Must be called on the instance to finish initialization.
25 virtual void Init() = 0; 25 virtual void Init() = 0;
26 26
27 // Registers a CDM with the specified CDM information. The CDM will be 27 // Registers a CDM with the specified CDM information. The CDM will be
28 // inserted at the head of the list so that it can override any older 28 // inserted at the head of the list so that it can override any older
29 // registrations. 29 // registrations.
30 // Note: Since only 1 version of the CDM can be loaded at any given time, 30 // Note: Since only 1 version of the CDM can be loaded at any given time,
31 // it is possible that there will be a mismatch between the functionality 31 // it is possible that there will be a mismatch between the functionality
32 // reported and what is actually available, if the reported functionality 32 // reported and what is actually available, if the reported functionality
33 // changes between versions. (http://crbug.com/599588) 33 // changes between versions. (http://crbug.com/599588)
34 virtual void RegisterCdm(const CdmInfo& info) = 0; 34 virtual void RegisterCdm(const CdmInfo& info) = 0;
35 35
36 // Returns the list of all registered CDMs and the associated data. 36 // Returns the list of all registered CDMs and the associated data.
37 virtual const std::vector<CdmInfo>& GetAllRegisteredCdms() = 0; 37 virtual const std::vector<CdmInfo>& GetAllRegisteredCdms() = 0;
38 }; 38 };
39 39
40 } // namespace content 40 } // namespace content
41 41
42 #endif // CONTENT_PUBLIC_BROWSER_CDM_SERVICE_H_ 42 #endif // CONTENT_PUBLIC_BROWSER_CDM_REGISTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698