| 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_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(); |
| 24 |
| 25 // Type of the CDM (e.g. Widevine). |
| 26 std::string type; |
| 27 |
| 28 // Version of the CDM. May be empty if the version is not known. |
| 29 base::Version version; |
| 30 |
| 31 // Path to the library implementing the CDM. May be empty if the |
| 32 // CDM is not a separate library (e.g. Widevine on Android). |
| 33 base::FilePath path; |
| 34 |
| 35 // List of codecs supported by the CDM (e.g. vp8). |
| 36 // TODO(jrummell): use the enums from media::AudioCodec and media::VideoCodec |
| 37 // instead of strings. |
| 38 std::vector<std::string> supported_codecs; |
| 39 }; |
| 40 |
| 41 } // namespace content |
| 42 |
| 43 #endif // CONTENT_PUBLIC_COMMON_CDM_INFO_H_ |
| OLD | NEW |