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

Side by Side Diff: content/public/common/cdm_info.h

Issue 1637083002: Add CdmService to keep track of CDMs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + add default copy constructor Created 4 years, 8 months 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
« no previous file with comments | « content/public/browser/cdm_service.h ('k') | content/public/common/content_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PUBLIC_COMMON_CDM_INFO_H_
6 #define CONTENT_PUBLIC_COMMON_CDM_INFO_H_
7
8 #include <string>
9 #include <vector>
10
11 #include "base/files/file_path.h"
12 #include "base/version.h"
13 #include "content/common/content_export.h"
14
15 namespace content {
16
17 // Represents a Content Decryption Module implementation and its capabilities.
18 struct CONTENT_EXPORT CdmInfo {
19 CdmInfo(const std::string& type,
20 const base::Version& version,
21 const base::FilePath& path,
22 const std::vector<std::string>& supported_codecs);
23 CdmInfo(const CdmInfo& other);
24 ~CdmInfo();
25
26 // Type of the CDM (e.g. Widevine).
27 std::string type;
28
29 // Version of the CDM. May be empty if the version is not known.
30 base::Version version;
31
32 // Path to the library implementing the CDM. May be empty if the
33 // CDM is not a separate library (e.g. Widevine on Android).
34 base::FilePath path;
35
36 // List of codecs supported by the CDM (e.g. vp8).
37 // TODO(jrummell): use the enums from media::AudioCodec and media::VideoCodec
38 // instead of strings.
39 std::vector<std::string> supported_codecs;
40 };
41
42 } // namespace content
43
44 #endif // CONTENT_PUBLIC_COMMON_CDM_INFO_H_
OLDNEW
« no previous file with comments | « content/public/browser/cdm_service.h ('k') | content/public/common/content_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698