OLD | NEW |
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 #ifndef PPAPI_THUNK_INSTANCE_API_H_ | 5 #ifndef PPAPI_THUNK_INSTANCE_API_H_ |
6 #define PPAPI_THUNK_INSTANCE_API_H_ | 6 #define PPAPI_THUNK_INSTANCE_API_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "build/build_config.h" |
10 #include "ppapi/c/dev/ppb_url_util_dev.h" | 13 #include "ppapi/c/dev/ppb_url_util_dev.h" |
11 #include "ppapi/c/pp_bool.h" | 14 #include "ppapi/c/pp_bool.h" |
12 #include "ppapi/c/pp_completion_callback.h" | 15 #include "ppapi/c/pp_completion_callback.h" |
13 #include "ppapi/c/pp_size.h" | 16 #include "ppapi/c/pp_size.h" |
14 #include "ppapi/c/pp_time.h" | 17 #include "ppapi/c/pp_time.h" |
15 #include "ppapi/c/ppb_audio_config.h" | 18 #include "ppapi/c/ppb_audio_config.h" |
16 #include "ppapi/c/ppb_console.h" | 19 #include "ppapi/c/ppb_console.h" |
17 #include "ppapi/c/ppb_gamepad.h" | 20 #include "ppapi/c/ppb_gamepad.h" |
18 #include "ppapi/c/ppb_instance.h" | 21 #include "ppapi/c/ppb_instance.h" |
19 #include "ppapi/c/ppb_mouse_cursor.h" | 22 #include "ppapi/c/ppb_mouse_cursor.h" |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 virtual void UpdateSurroundingText(PP_Instance instance, | 144 virtual void UpdateSurroundingText(PP_Instance instance, |
142 const char* text, | 145 const char* text, |
143 uint32_t caret, | 146 uint32_t caret, |
144 uint32_t anchor) = 0; | 147 uint32_t anchor) = 0; |
145 | 148 |
146 // Testing and URLUtil. | 149 // Testing and URLUtil. |
147 virtual PP_Var GetDocumentURL(PP_Instance instance, | 150 virtual PP_Var GetDocumentURL(PP_Instance instance, |
148 PP_URLComponents_Dev* components) = 0; | 151 PP_URLComponents_Dev* components) = 0; |
149 #if !defined(OS_NACL) | 152 #if !defined(OS_NACL) |
150 // Content Decryptor. | 153 // Content Decryptor. |
151 virtual void PromiseResolved(PP_Instance instance, uint32 promise_id) = 0; | 154 virtual void PromiseResolved(PP_Instance instance, uint32_t promise_id) = 0; |
152 virtual void PromiseResolvedWithSession(PP_Instance instance, | 155 virtual void PromiseResolvedWithSession(PP_Instance instance, |
153 uint32 promise_id, | 156 uint32_t promise_id, |
154 PP_Var session_id_var) = 0; | 157 PP_Var session_id_var) = 0; |
155 virtual void PromiseRejected(PP_Instance instance, | 158 virtual void PromiseRejected(PP_Instance instance, |
156 uint32 promise_id, | 159 uint32_t promise_id, |
157 PP_CdmExceptionCode exception_code, | 160 PP_CdmExceptionCode exception_code, |
158 uint32 system_code, | 161 uint32_t system_code, |
159 PP_Var error_description_var) = 0; | 162 PP_Var error_description_var) = 0; |
160 virtual void SessionMessage(PP_Instance instance, | 163 virtual void SessionMessage(PP_Instance instance, |
161 PP_Var session_id_var, | 164 PP_Var session_id_var, |
162 PP_CdmMessageType message_type, | 165 PP_CdmMessageType message_type, |
163 PP_Var message_var, | 166 PP_Var message_var, |
164 PP_Var legacy_destination_url_var) = 0; | 167 PP_Var legacy_destination_url_var) = 0; |
165 virtual void SessionKeysChange( | 168 virtual void SessionKeysChange( |
166 PP_Instance instance, | 169 PP_Instance instance, |
167 PP_Var session_id_var, | 170 PP_Var session_id_var, |
168 PP_Bool has_additional_usable_key, | 171 PP_Bool has_additional_usable_key, |
169 uint32_t key_count, | 172 uint32_t key_count, |
170 const struct PP_KeyInformation key_information[]) = 0; | 173 const struct PP_KeyInformation key_information[]) = 0; |
171 virtual void SessionExpirationChange(PP_Instance instance, | 174 virtual void SessionExpirationChange(PP_Instance instance, |
172 PP_Var session_id_var, | 175 PP_Var session_id_var, |
173 PP_Time new_expiry_time) = 0; | 176 PP_Time new_expiry_time) = 0; |
174 virtual void SessionClosed(PP_Instance instance, PP_Var session_id_var) = 0; | 177 virtual void SessionClosed(PP_Instance instance, PP_Var session_id_var) = 0; |
175 virtual void LegacySessionError(PP_Instance instance, | 178 virtual void LegacySessionError(PP_Instance instance, |
176 PP_Var session_id_var, | 179 PP_Var session_id_var, |
177 PP_CdmExceptionCode exception_code, | 180 PP_CdmExceptionCode exception_code, |
178 uint32 system_code, | 181 uint32_t system_code, |
179 PP_Var error_description_var) = 0; | 182 PP_Var error_description_var) = 0; |
180 virtual void DeliverBlock(PP_Instance instance, | 183 virtual void DeliverBlock(PP_Instance instance, |
181 PP_Resource decrypted_block, | 184 PP_Resource decrypted_block, |
182 const PP_DecryptedBlockInfo* block_info) = 0; | 185 const PP_DecryptedBlockInfo* block_info) = 0; |
183 virtual void DecoderInitializeDone(PP_Instance instance, | 186 virtual void DecoderInitializeDone(PP_Instance instance, |
184 PP_DecryptorStreamType decoder_type, | 187 PP_DecryptorStreamType decoder_type, |
185 uint32_t request_id, | 188 uint32_t request_id, |
186 PP_Bool success) = 0; | 189 PP_Bool success) = 0; |
187 virtual void DecoderDeinitializeDone(PP_Instance instance, | 190 virtual void DecoderDeinitializeDone(PP_Instance instance, |
188 PP_DecryptorStreamType decoder_type, | 191 PP_DecryptorStreamType decoder_type, |
(...skipping 22 matching lines...) Expand all Loading... |
211 PP_URLComponents_Dev* components) = 0; | 214 PP_URLComponents_Dev* components) = 0; |
212 #endif // !defined(OS_NACL) | 215 #endif // !defined(OS_NACL) |
213 | 216 |
214 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 217 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
215 }; | 218 }; |
216 | 219 |
217 } // namespace thunk | 220 } // namespace thunk |
218 } // namespace ppapi | 221 } // namespace ppapi |
219 | 222 |
220 #endif // PPAPI_THUNK_INSTANCE_API_H_ | 223 #endif // PPAPI_THUNK_INSTANCE_API_H_ |
OLD | NEW |