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 CHROME_BROWSER_MEDIA_PEPPER_CDM_TEST_HELPER_H_ | |
| 6 #define CHROME_BROWSER_MEDIA_PEPPER_CDM_TEST_HELPER_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/files/file_path.h" | |
| 11 | |
| 12 namespace base { | |
| 13 class CommandLine; | |
| 14 } | |
| 15 | |
| 16 // Platform-specific filename relative to kClearKeyCdmBaseDirectory. | |
| 17 extern const char kClearKeyCdmAdapterFileName[]; | |
| 18 | |
| 19 // Pepper type for Clear Key CDM. | |
| 20 extern const char kClearKeyCdmPepperMimeType[]; | |
| 21 | |
| 22 // Builds the string to pass to kRegisterPepperPlugins for a single | |
| 23 // CDM using the provided parameters and a dummy version. | |
| 24 // Multiple results may be passed to kRegisterPepperPlugins, separated by ",". | |
| 25 // The CDM adapter should be located in |adapter_base_dir| in DIR_MODULE. | |
|
Lei Zhang
2016/05/18 00:53:11
There's no |adapter_base_dir| param.
xhwang
2016/05/18 02:08:10
Done.
| |
| 26 base::FilePath::StringType BuildPepperCdmRegistration( | |
| 27 const std::string& adapter_file_name, | |
| 28 const std::string& mime_type, | |
| 29 bool expect_adapter_exists = true); | |
| 30 | |
| 31 // Registers pepper CDM in |command_line|. | |
| 32 void RegisterPepperCdm(base::CommandLine* command_line, | |
| 33 const std::string& adapter_file_name, | |
| 34 const std::string& mime_type, | |
| 35 bool expect_adapter_exists = true); | |
| 36 | |
| 37 #endif // CHROME_BROWSER_MEDIA_PEPPER_CDM_TEST_HELPER_H_ | |
| OLD | NEW |