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

Unified Diff: content_decryption_module_ext.h

Issue 2640203003: Update host verification API (Closed)
Patch Set: comments Created 3 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content_decryption_module_ext.h
diff --git a/content_decryption_module_ext.h b/content_decryption_module_ext.h
index 4a3c10ec56523c187d50a1cdefa7f9cade76e485..68f2d0511f04fe9c09fe665bf2bed009cc6ce895 100644
--- a/content_decryption_module_ext.h
+++ b/content_decryption_module_ext.h
@@ -49,12 +49,17 @@ struct HostFile {
extern "C" {
-// Verifies CDM host files, which are opened in read-only mode and passed in
-// |host_files|. The CDM MUST return as soon as possible and process the files
+// Functions in this file are dynamically retrieved by their versioned function
+// names. Increment the version number for any backward incompatible API
+// changes.
+
+// Verifies CDM host. All files in |host_files| are opened in read-only mode.
+//
+// Returns false and closes all files if there is an immediate failure.
+// Otherwise returns true as soon as possible and processes the files
// asynchronously. All files MUST be closed by the CDM after this one-time
// processing is finished.
-CDM_API void VerifyHostFiles(const cdm::HostFile* host_files,
- uint32_t num_files);
+CDM_API bool VerifyHost_0(const cdm::HostFile* host_files, uint32_t num_files);
}
#endif // CDM_CONTENT_DECRYPTION_MODULE_EXT_H_
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698