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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CDM_CONTENT_DECRYPTION_MODULE_EXT_H_ 5 #ifndef CDM_CONTENT_DECRYPTION_MODULE_EXT_H_
6 #define CDM_CONTENT_DECRYPTION_MODULE_EXT_H_ 6 #define CDM_CONTENT_DECRYPTION_MODULE_EXT_H_
7 7
8 #if defined(WIN32) 8 #if defined(WIN32)
9 #include <windows.h> 9 #include <windows.h>
10 #endif 10 #endif
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 PlatformFile file = kInvalidPlatformFile; 42 PlatformFile file = kInvalidPlatformFile;
43 43
44 // Signature file for |file|. 44 // Signature file for |file|.
45 PlatformFile sig_file = kInvalidPlatformFile; 45 PlatformFile sig_file = kInvalidPlatformFile;
46 }; 46 };
47 47
48 } // namespace cdm 48 } // namespace cdm
49 49
50 extern "C" { 50 extern "C" {
51 51
52 // Verifies CDM host files, which are opened in read-only mode and passed in 52 // 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.
53 // |host_files|. The CDM MUST return as soon as possible and process the files 53 // name. Increment the version number for any backward incompatible API changes.
54
55 // Verifies CDM host. All files in |host_files| are opened in read-only mode.
56 //
57 // Returns false and close all files if verification failed immediately.
58 // Otherwise the CDM MUST return true as soon as possible and process the files
54 // asynchronously. All files MUST be closed by the CDM after this one-time 59 // asynchronously. All files MUST be closed by the CDM after this one-time
55 // processing is finished. 60 // processing is finished.
56 CDM_API void VerifyHostFiles(const cdm::HostFile* host_files, 61 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
57 uint32_t num_files);
58 } 62 }
59 63
60 #endif // CDM_CONTENT_DECRYPTION_MODULE_EXT_H_ 64 #endif // CDM_CONTENT_DECRYPTION_MODULE_EXT_H_
OLDNEW
« 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