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

Side by Side Diff: content/browser/media/cdm_registry_impl.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
(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_REGISTRY_IMPL_H_
6 #define CONTENT_BROWSER_MEDIA_CDM_REGISTRY_IMPL_H_
7
8 #include <vector>
9
10 #include "base/lazy_instance.h"
11 #include "base/macros.h"
12 #include "content/common/content_export.h"
13 #include "content/public/browser/cdm_registry.h"
14
15 namespace content {
16
17 struct CdmInfo;
18
19 class CONTENT_EXPORT CdmRegistryImpl : NON_EXPORTED_BASE(public CdmRegistry) {
20 public:
21 // Returns the CdmRegistryImpl singleton.
22 static CdmRegistryImpl* GetInstance();
23
24 // CdmRegistry implementation.
25 void Init() override;
26 void RegisterCdm(const CdmInfo& info) override;
27 const std::vector<CdmInfo>& GetAllRegisteredCdms() override;
28
29 private:
30 friend struct base::DefaultLazyInstanceTraits<CdmRegistryImpl>;
31 friend class CdmRegistryImplTest;
32
33 CdmRegistryImpl();
34 ~CdmRegistryImpl() override;
35
36 std::vector<CdmInfo> cdms_;
37
38 DISALLOW_COPY_AND_ASSIGN(CdmRegistryImpl);
39 };
40
41 } // namespace content
42
43 #endif // CONTENT_BROWSER_MEDIA_CDM_REGISTRY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698