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

Side by Side Diff: ppapi/c/private/pp_content_decryptor.h

Issue 1050823009: Handle all possible cdm::Status values before passing through Pepper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 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 5
6 /* From private/pp_content_decryptor.idl modified Thu Mar 19 16:04:42 2015. */ 6 /* From private/pp_content_decryptor.idl modified Wed Apr 22 13:38:55 2015. */
7 7
8 #ifndef PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_ 8 #ifndef PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_
9 #define PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_ 9 #define PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_
10 10
11 #include "ppapi/c/pp_macros.h" 11 #include "ppapi/c/pp_macros.h"
12 #include "ppapi/c/pp_stdint.h" 12 #include "ppapi/c/pp_stdint.h"
13 13
14 /** 14 /**
15 * @file 15 * @file
16 * The <code>PP_DecryptTrackingInfo</code> struct contains necessary information 16 * The <code>PP_DecryptTrackingInfo</code> struct contains necessary information
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 typedef enum { 164 typedef enum {
165 /** The decryption (and/or decoding) operation finished successfully. */ 165 /** The decryption (and/or decoding) operation finished successfully. */
166 PP_DECRYPTRESULT_SUCCESS = 0, 166 PP_DECRYPTRESULT_SUCCESS = 0,
167 /** The decryptor did not have the necessary decryption key. */ 167 /** The decryptor did not have the necessary decryption key. */
168 PP_DECRYPTRESULT_DECRYPT_NOKEY = 1, 168 PP_DECRYPTRESULT_DECRYPT_NOKEY = 1,
169 /** The input was accepted by the decoder but no frame(s) can be produced. */ 169 /** The input was accepted by the decoder but no frame(s) can be produced. */
170 PP_DECRYPTRESULT_NEEDMOREDATA = 2, 170 PP_DECRYPTRESULT_NEEDMOREDATA = 2,
171 /** An unexpected error happened during decryption. */ 171 /** An unexpected error happened during decryption. */
172 PP_DECRYPTRESULT_DECRYPT_ERROR = 3, 172 PP_DECRYPTRESULT_DECRYPT_ERROR = 3,
173 /** An unexpected error happened during decoding. */ 173 /** An unexpected error happened during decoding. */
174 PP_DECRYPTRESULT_DECODE_ERROR = 4 174 PP_DECRYPTRESULT_DECODE_ERROR = 4,
175 /** Session management error. */
176 PP_DECRYPTRESULT_SESSION_ERROR = 5,
177 /** Decoder is not ready for initialization. */
178 PP_DECRYPTRESULT_DEFERRED_INITIALIZATION = 6
175 } PP_DecryptResult; 179 } PP_DecryptResult;
176 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_DecryptResult, 4); 180 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_DecryptResult, 4);
177 /** 181 /**
178 * @} 182 * @}
179 */ 183 */
180 184
181 /** 185 /**
182 * @addtogroup Structs 186 * @addtogroup Structs
183 * @{ 187 * @{
184 */ 188 */
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 */ 537 */
534 uint32_t system_code; 538 uint32_t system_code;
535 }; 539 };
536 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_KeyInformation, 524); 540 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_KeyInformation, 524);
537 /** 541 /**
538 * @} 542 * @}
539 */ 543 */
540 544
541 #endif /* PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_ */ 545 #endif /* PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_ */
542 546
OLDNEW
« ppapi/api/private/pp_content_decryptor.idl ('K') | « ppapi/api/private/pp_content_decryptor.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698