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 { | |
|
xhwang
2016/03/26 07:46:34
Previously you mentioned that we can't put this un
jrummell
2016/03/29 23:48:45
As we discussed offline, the zygote doesn't use th
xhwang
2016/03/30 05:11:18
Great. It's even better now we can keep this in co
jrummell
2016/04/01 21:15:53
Agreed.
| |
| 16 public: | |
| 17 // Returns the CdmService singleton. | |
| 18 static CdmService* GetInstance(); | |
| 19 | |
| 20 virtual ~CdmService() {} | |
| 21 | |
| 22 // Determines the list of available CDMs and registers them. | |
| 23 virtual void RegisterAllAvailableCdms() = 0; | |
|
xhwang
2016/03/26 07:46:34
Why this is on the public API? Who should call it?
jrummell
2016/03/29 23:48:45
ddorwin@ asked in a previous comment to make it ex
xhwang
2016/03/30 05:11:17
RegisterPepperPlugins() is a private helper functi
jrummell
2016/04/01 21:15:53
As discussed offline, this is now renamed Init() (
| |
| 24 | |
| 25 // Registers a CDM with the specified CDM information. | |
| 26 // If |add_at_beginning| is true the CDM will be added earlier in | |
| 27 // the list so that it can override any older registrations. | |
| 28 virtual void RegisterCdm(const CdmInfo& info, bool add_at_beginning) = 0; | |
|
xhwang
2016/03/26 07:46:34
Today in pepper we always append at end. This is i
jrummell
2016/03/29 23:48:45
The component updater adds new versions to the fro
xhwang
2016/03/30 05:11:18
This model is seems a bit complicated. How would w
jrummell
2016/04/01 21:15:53
Done.
| |
| 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 |