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

Unified Diff: content_decryption_module_ext.h

Issue 2640203003: Update host verification API (Closed)
Patch Set: 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..59c0835cd0619b6d5dac2af464dbe337611068d0 100644
--- a/content_decryption_module_ext.h
+++ b/content_decryption_module_ext.h
@@ -49,12 +49,16 @@ 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 fucntion
jrummell 2017/01/19 18:44:19 s/fucntion/function/ (last word on line).
xhwang 2017/01/19 19:42:18 Done.
+// name. 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 close all files if verification failed immediately.
+// Otherwise the CDM MUST return true as soon as possible and process 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);
jrummell 2017/01/19 18:44:19 Should we also have the typedef for the calling si
xhwang 2017/01/19 19:42:18 Summary of offline discussion. Typically we don't
}
#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