OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_PUBLIC_COMMON_CDM_INFO_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_CDM_INFO_H_ |
6 #define CONTENT_PUBLIC_COMMON_CDM_INFO_H_ | 6 #define CONTENT_PUBLIC_COMMON_CDM_INFO_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 // Path to the library implementing the CDM. May be empty if the | 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). | 33 // CDM is not a separate library (e.g. Widevine on Android). |
34 base::FilePath path; | 34 base::FilePath path; |
35 | 35 |
36 // List of codecs supported by the CDM (e.g. vp8). | 36 // List of codecs supported by the CDM (e.g. vp8). |
37 // TODO(jrummell): use the enums from media::AudioCodec and media::VideoCodec | 37 // TODO(jrummell): use the enums from media::AudioCodec and media::VideoCodec |
38 // instead of strings. | 38 // instead of strings. |
39 std::vector<std::string> supported_codecs; | 39 std::vector<std::string> supported_codecs; |
40 }; | 40 }; |
41 | 41 |
| 42 struct CONTENT_EXPORT CdmHostFilePath { |
| 43 CdmHostFilePath(const base::FilePath& file_path, |
| 44 const base::FilePath& sig_file_path); |
| 45 ~CdmHostFilePath(); |
| 46 |
| 47 // Path to a file that takes part in hosting the CDM. |
| 48 base::FilePath file_path; |
| 49 |
| 50 // Path to a signature file of the file at |file_path|. |
| 51 base::FilePath sig_file_path; |
| 52 }; |
| 53 |
42 } // namespace content | 54 } // namespace content |
43 | 55 |
44 #endif // CONTENT_PUBLIC_COMMON_CDM_INFO_H_ | 56 #endif // CONTENT_PUBLIC_COMMON_CDM_INFO_H_ |
OLD | NEW |