Chromium Code Reviews| 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/strings/string16.h" | |
|
ddorwin
2016/03/18 19:24:18
Don't use string16.
jrummell
2016/03/23 21:38:10
Done.
| |
| 13 #include "content/common/content_export.h" | |
| 14 | |
| 15 namespace content { | |
| 16 | |
| 17 // Collects information about Content Decryption Modules. | |
|
ddorwin
2016/03/18 19:24:18
An object does not perform actions. Contains? Repr
jrummell
2016/03/23 21:38:10
Done.
| |
| 18 struct CONTENT_EXPORT CdmInfo { | |
| 19 // Identifier for the CDM. | |
| 20 std::string cdm_id; | |
|
ddorwin
2016/03/18 19:24:18
"CDM ID" is already overloaded. For example, in Cd
xhwang
2016/03/18 19:35:38
What is this for?
If we need this, we are already
jrummell
2016/03/23 21:38:09
Renamed.
| |
| 21 | |
| 22 // Version of the CDM. | |
|
ddorwin
2016/03/18 19:24:18
May be empty.
(Pretty much everywhere except desk
jrummell
2016/03/23 21:38:09
Done.
| |
| 23 std::string version; | |
|
xhwang
2016/03/18 19:35:38
use base::Version?
jrummell
2016/03/23 21:38:09
Done.
| |
| 24 | |
| 25 // Path to the library implementing the CDM. May be empty() if the | |
|
ddorwin
2016/03/18 19:24:18
Remove "()".
This should probably be ifdef'd to t
jrummell
2016/03/23 21:38:09
I'd like to avoid #ifdefs.
| |
| 26 // CDM is already included as part of the system. | |
|
ddorwin
2016/03/18 19:24:18
If we don't ifdef this, we should clean up this li
jrummell
2016/03/23 21:38:09
Done.
| |
| 27 base::FilePath module_library_path; | |
|
xhwang
2016/03/18 19:35:38
nit: s/module_library_path/path?
See:
https://co
jrummell
2016/03/23 21:38:09
Done.
| |
| 28 | |
| 29 // List of codecs supported by the CDM. | |
|
ddorwin
2016/03/18 19:24:18
How we use this information varies depending on th
jrummell
2016/03/23 21:38:09
Acknowledged.
| |
| 30 std::vector<base::string16> supported_codecs; | |
|
xhwang
2016/03/18 19:35:38
why these need to be string16 instead of string?
jrummell
2016/03/23 21:38:09
Copied from what the Pepper code for WV did. Now s
| |
| 31 | |
| 32 // List of init_data_types supported by the CDM. | |
|
ddorwin
2016/03/18 19:24:18
s/init_data_types/Initialization Data Types/
jrummell
2016/03/23 21:38:09
Removed since we aren't using this yet.
| |
| 33 std::vector<base::string16> supported_init_data_types; | |
|
xhwang
2016/03/18 19:35:38
Are we using these init_data_types in this CL? If
jrummell
2016/03/23 21:38:10
Done.
| |
| 34 | |
| 35 CdmInfo(const std::string& cdm_id, | |
| 36 const std::string& version, | |
| 37 const base::FilePath& module_library_path, | |
|
ddorwin
2016/03/18 19:24:18
The reordering suggestion above would complicate t
jrummell
2016/03/23 21:38:10
Acknowledged.
| |
| 38 const std::vector<base::string16>& supported_codecs, | |
| 39 const std::vector<base::string16>& supported_init_data_types); | |
| 40 ~CdmInfo(); | |
|
xhwang
2016/03/18 19:35:38
Declare ctor/dtor before member variables
jrummell
2016/03/23 21:38:10
Done.
| |
| 41 }; | |
| 42 | |
| 43 } // namespace content | |
| 44 | |
| 45 #endif // CONTENT_PUBLIC_COMMON_CDM_INFO_H_ | |
| OLD | NEW |