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_KEY_SYSTEM_REGISTRATION_H_ | |
| 6 #define CONTENT_PUBLIC_COMMON_KEY_SYSTEM_REGISTRATION_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/files/file_path.h" | |
| 11 #include "base/strings/string16.h" | |
| 12 #include "content/common/content_export.h" | |
| 13 | |
| 14 namespace content { | |
| 15 | |
| 16 // Collects information about Key Systems. | |
| 17 struct CONTENT_EXPORT KeySystemRegistration { | |
| 18 // Name of the Key System. | |
| 19 std::string key_system_; | |
|
xhwang
2016/01/29 07:43:06
No need to use trailing "_" for struct members.
jrummell
2016/03/04 01:19:41
Done.
| |
| 20 | |
| 21 // Path to the library implementing the Key System. May be empty() if the | |
| 22 // Key System is already included as part of the system. | |
| 23 base::FilePath path_; | |
|
xhwang
2016/01/29 07:43:06
Can we use a more specific name? Key System doesn'
jrummell
2016/03/04 01:19:41
Done.
| |
| 24 | |
| 25 // List of codecs supported by the Key System. | |
| 26 base::string16 codecs_; | |
|
xhwang
2016/01/29 07:43:06
Can we use std::vector<base::string16> for the "li
jrummell
2016/03/04 01:19:41
Done.
| |
| 27 | |
| 28 KeySystemRegistration(const std::string& key_system, | |
| 29 const base::FilePath& path, | |
| 30 const base::string16& codecs) | |
| 31 : key_system_(key_system), path_(path), codecs_(codecs) {} | |
| 32 }; | |
| 33 | |
| 34 } // namespace content | |
| 35 | |
| 36 #endif // CONTENT_PUBLIC_COMMON_KEY_SYSTEM_REGISTRATION_H_ | |
| OLD | NEW |