Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_CDM_SERVICE_H_ | |
| 6 #define CONTENT_PUBLIC_BROWSER_CDM_SERVICE_H_ | |
| 7 | |
| 8 #include <vector> | |
| 9 | |
| 10 #include "content/common/content_export.h" | |
| 11 #include "content/public/common/cdm_info.h" | |
| 12 | |
| 13 namespace content { | |
| 14 | |
| 15 class CONTENT_EXPORT CdmService { | |
| 16 public: | |
| 17 // Returns the CdmService singleton. | |
| 18 static CdmService* GetInstance(); | |
| 19 | |
| 20 virtual ~CdmService() {} | |
| 21 | |
| 22 // Must be called on the instance to finish initialization. | |
| 23 virtual void Init() = 0; | |
| 24 | |
| 25 // Registers a CDM with the specified CDM information. The CDM will be | |
| 26 // insertted at the head of the list so that it can override any older | |
|
xhwang
2016/04/13 00:22:13
inserted
jrummell
2016/04/14 01:32:16
Done.
| |
| 27 // registrations. | |
|
xhwang
2016/04/13 00:22:13
Please add a note to potential issues described in
jrummell
2016/04/14 01:32:16
Done (although I think this is more an issue for t
| |
| 28 virtual void RegisterCdm(const CdmInfo& info) = 0; | |
| 29 | |
| 30 // Returns the list of all registered CDMs and the associated data. | |
| 31 virtual const std::vector<CdmInfo>& GetAllRegisteredCdms() = 0; | |
| 32 }; | |
| 33 | |
| 34 } // namespace content | |
| 35 | |
| 36 #endif // CONTENT_PUBLIC_BROWSER_CDM_SERVICE_H_ | |
| OLD | NEW |