| 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_BROWSER_MEDIA_CDM_SERVICE_IMPL_H_ |
| 6 #define CONTENT_BROWSER_MEDIA_CDM_SERVICE_IMPL_H_ |
| 7 |
| 8 #include <string> |
| 9 #include <vector> |
| 10 |
| 11 #include "base/lazy_instance.h" |
| 12 #include "base/macros.h" |
| 13 #include "content/common/content_export.h" |
| 14 #include "content/public/browser/cdm_service.h" |
| 15 #include "content/public/common/cdm_info.h" |
| 16 |
| 17 namespace content { |
| 18 |
| 19 class CONTENT_EXPORT CdmServiceImpl : NON_EXPORTED_BASE(public CdmService) { |
| 20 public: |
| 21 // Returns the CdmServiceImpl singleton. |
| 22 static CdmServiceImpl* GetInstance(); |
| 23 |
| 24 // CdmService implementation. |
| 25 void RegisterAllAvailableCdms() override; |
| 26 void RegisterCdm(const CdmInfo& info, bool add_at_beginning) override; |
| 27 const std::vector<CdmInfo>& GetAllRegisteredCdms() override; |
| 28 |
| 29 private: |
| 30 friend struct base::DefaultLazyInstanceTraits<CdmServiceImpl>; |
| 31 |
| 32 CdmServiceImpl(); |
| 33 ~CdmServiceImpl() override; |
| 34 |
| 35 std::vector<CdmInfo> cdms_; |
| 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(CdmServiceImpl); |
| 38 }; |
| 39 |
| 40 } // namespace content |
| 41 |
| 42 #endif // CONTENT_BROWSER_MEDIA_CDM_SERVICE_IMPL_H_ |
| OLD | NEW |