Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: chrome/browser/media/pepper_cdm_test_helper.h

Issue 1991963002: (reland) madia: Add helper function to register pepper CDMs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 // Display name for Clear Key CDM.
17 extern const char kClearKeyCdmDisplayName[];
18
19 // Platform-specific filename relative to kClearKeyCdmBaseDirectory.
20 extern const char kClearKeyCdmAdapterFileName[];
21
22 // Pepper type for Clear Key CDM.
23 extern const char kClearKeyCdmPepperMimeType[];
24
25 // Builds the string to pass to kRegisterPepperPlugins for a single
26 // CDM using the provided parameters and a dummy version.
27 // Multiple results may be passed to kRegisterPepperPlugins, separated by ",".
28 // The CDM adapter should be located in DIR_MODULE.
29 base::FilePath::StringType BuildPepperCdmRegistration(
30 const std::string& adapter_file_name,
31 const std::string& display_name,
32 const std::string& mime_type,
33 bool expect_adapter_exists = true);
34
35 // Registers pepper CDM in |command_line|.
36 void RegisterPepperCdm(base::CommandLine* command_line,
37 const std::string& adapter_file_name,
38 const std::string& display_name,
39 const std::string& mime_type,
40 bool expect_adapter_exists = true);
41
42 #endif // CHROME_BROWSER_MEDIA_PEPPER_CDM_TEST_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/encrypted_media_supported_types_browsertest.cc ('k') | chrome/browser/media/pepper_cdm_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698