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

Unified Diff: chrome/browser/media/pepper_cdm_test_helper.h

Issue 2020573002: media: Check Widevine CDM registration and availability. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media/pepper_cdm_test_helper.h
diff --git a/chrome/browser/media/pepper_cdm_test_helper.h b/chrome/browser/media/pepper_cdm_test_helper.h
index 87e766ff7b006f49fd1ddd957b9cb37fe4581062..34956da7570c6e7d22bf7363a10b24262fa725e4 100644
--- a/chrome/browser/media/pepper_cdm_test_helper.h
+++ b/chrome/browser/media/pepper_cdm_test_helper.h
@@ -25,6 +25,10 @@ extern const char kClearKeyCdmDisplayName[];
// Pepper type for Clear Key CDM.
extern const char kClearKeyCdmPepperMimeType[];
+// Returns the path a pepper CDM adapter.
+base::FilePath GetPepperCdmPath(const std::string& adapter_base_dir,
+ const std::string& adapter_file_name);
+
// Builds the string to pass to kRegisterPepperPlugins for a single
// CDM using the provided parameters and a dummy version.
// Multiple results may be passed to kRegisterPepperPlugins, separated by ",".
@@ -44,4 +48,7 @@ void RegisterPepperCdm(base::CommandLine* command_line,
const std::string& mime_type,
bool expect_adapter_exists = true);
+// Returns whether a pepper CDM with |mime_type| is registered.
+bool IsPepperCdmRegistered(const std::string& mime_type);
+
#endif // CHROME_BROWSER_MEDIA_PEPPER_CDM_TEST_HELPER_H_
« no previous file with comments | « chrome/browser/content_settings/content_settings_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