OLD | NEW |
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 Loading... |
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 function |
53 // |host_files|. The CDM MUST return as soon as possible and process the files | 53 // names. Increment the version number for any backward incompatible API |
| 54 // changes. |
| 55 |
| 56 // Verifies CDM host. All files in |host_files| are opened in read-only mode. |
| 57 // |
| 58 // Returns false and closes all files if there is an immediate failure. |
| 59 // Otherwise returns true as soon as possible and processes the files |
54 // asynchronously. All files MUST be closed by the CDM after this one-time | 60 // asynchronously. All files MUST be closed by the CDM after this one-time |
55 // processing is finished. | 61 // processing is finished. |
56 CDM_API void VerifyHostFiles(const cdm::HostFile* host_files, | 62 CDM_API bool VerifyHost_0(const cdm::HostFile* host_files, uint32_t num_files); |
57 uint32_t num_files); | |
58 } | 63 } |
59 | 64 |
60 #endif // CDM_CONTENT_DECRYPTION_MODULE_EXT_H_ | 65 #endif // CDM_CONTENT_DECRYPTION_MODULE_EXT_H_ |
OLD | NEW |