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 "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "ppapi/c/dev/ppb_url_util_dev.h" | 10 #include "ppapi/c/dev/ppb_url_util_dev.h" |
11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
12 #include "ppapi/c/pp_completion_callback.h" | 12 #include "ppapi/c/pp_completion_callback.h" |
13 #include "ppapi/c/pp_size.h" | 13 #include "ppapi/c/pp_size.h" |
| 14 #include "ppapi/c/pp_time.h" |
14 #include "ppapi/c/ppb_audio_config.h" | 15 #include "ppapi/c/ppb_audio_config.h" |
15 #include "ppapi/c/ppb_console.h" | 16 #include "ppapi/c/ppb_console.h" |
16 #include "ppapi/c/ppb_gamepad.h" | 17 #include "ppapi/c/ppb_gamepad.h" |
17 #include "ppapi/c/ppb_instance.h" | 18 #include "ppapi/c/ppb_instance.h" |
18 #include "ppapi/c/ppb_mouse_cursor.h" | 19 #include "ppapi/c/ppb_mouse_cursor.h" |
19 #include "ppapi/c/ppb_text_input_controller.h" | 20 #include "ppapi/c/ppb_text_input_controller.h" |
20 #include "ppapi/c/private/pp_content_decryptor.h" | 21 #include "ppapi/c/private/pp_content_decryptor.h" |
21 #include "ppapi/c/private/ppb_instance_private.h" | 22 #include "ppapi/c/private/ppb_instance_private.h" |
22 #include "ppapi/shared_impl/api_id.h" | 23 #include "ppapi/shared_impl/api_id.h" |
23 #include "ppapi/shared_impl/resource.h" | 24 #include "ppapi/shared_impl/resource.h" |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 double maximum_factor) = 0; | 153 double maximum_factor) = 0; |
153 // Testing and URLUtil. | 154 // Testing and URLUtil. |
154 virtual PP_Var GetDocumentURL(PP_Instance instance, | 155 virtual PP_Var GetDocumentURL(PP_Instance instance, |
155 PP_URLComponents_Dev* components) = 0; | 156 PP_URLComponents_Dev* components) = 0; |
156 #if !defined(OS_NACL) | 157 #if !defined(OS_NACL) |
157 // Content Decryptor. | 158 // Content Decryptor. |
158 virtual void PromiseResolved(PP_Instance instance, uint32 promise_id) = 0; | 159 virtual void PromiseResolved(PP_Instance instance, uint32 promise_id) = 0; |
159 virtual void PromiseResolvedWithSession(PP_Instance instance, | 160 virtual void PromiseResolvedWithSession(PP_Instance instance, |
160 uint32 promise_id, | 161 uint32 promise_id, |
161 PP_Var web_session_id_var) = 0; | 162 PP_Var web_session_id_var) = 0; |
| 163 virtual void PromiseResolvedWithKeyIds(PP_Instance instance, |
| 164 uint32 promise_id, |
| 165 PP_Var key_ids_var) = 0; |
162 virtual void PromiseRejected(PP_Instance instance, | 166 virtual void PromiseRejected(PP_Instance instance, |
163 uint32 promise_id, | 167 uint32 promise_id, |
164 PP_CdmExceptionCode exception_code, | 168 PP_CdmExceptionCode exception_code, |
165 uint32 system_code, | 169 uint32 system_code, |
166 PP_Var error_description_var) = 0; | 170 PP_Var error_description_var) = 0; |
167 virtual void SessionMessage(PP_Instance instance, | 171 virtual void SessionMessage(PP_Instance instance, |
168 PP_Var web_session_id_var, | 172 PP_Var web_session_id_var, |
169 PP_Var message_var, | 173 PP_Var message_var, |
170 PP_Var destination_url_var) = 0; | 174 PP_Var destination_url_var) = 0; |
| 175 virtual void SessionKeysChange(PP_Instance instance, |
| 176 PP_Var web_session_id_var, |
| 177 PP_Bool has_additional_usable_key) = 0; |
| 178 virtual void SessionExpirationChange(PP_Instance instance, |
| 179 PP_Var web_session_id_var, |
| 180 PP_Time new_expiry_time) = 0; |
171 virtual void SessionReady(PP_Instance instance, | 181 virtual void SessionReady(PP_Instance instance, |
172 PP_Var web_session_id_var) = 0; | 182 PP_Var web_session_id_var) = 0; |
173 virtual void SessionClosed(PP_Instance instance, | 183 virtual void SessionClosed(PP_Instance instance, |
174 PP_Var web_session_id_var) = 0; | 184 PP_Var web_session_id_var) = 0; |
175 virtual void SessionError(PP_Instance instance, | 185 virtual void SessionError(PP_Instance instance, |
176 PP_Var web_session_id_var, | 186 PP_Var web_session_id_var, |
177 PP_CdmExceptionCode exception_code, | 187 PP_CdmExceptionCode exception_code, |
178 uint32 system_code, | 188 uint32 system_code, |
179 PP_Var error_description_var) = 0; | 189 PP_Var error_description_var) = 0; |
180 virtual void DeliverBlock(PP_Instance instance, | 190 virtual void DeliverBlock(PP_Instance instance, |
(...skipping 30 matching lines...) Expand all Loading... |
211 PP_URLComponents_Dev* components) = 0; | 221 PP_URLComponents_Dev* components) = 0; |
212 #endif // !defined(OS_NACL) | 222 #endif // !defined(OS_NACL) |
213 | 223 |
214 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 224 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
215 }; | 225 }; |
216 | 226 |
217 } // namespace thunk | 227 } // namespace thunk |
218 } // namespace ppapi | 228 } // namespace ppapi |
219 | 229 |
220 #endif // PPAPI_THUNK_INSTANCE_API_H_ | 230 #endif // PPAPI_THUNK_INSTANCE_API_H_ |
OLD | NEW |