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" |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 // Zoom. | 142 // Zoom. |
143 virtual void ZoomChanged(PP_Instance instance, double factor) = 0; | 143 virtual void ZoomChanged(PP_Instance instance, double factor) = 0; |
144 virtual void ZoomLimitsChanged(PP_Instance instance, | 144 virtual void ZoomLimitsChanged(PP_Instance instance, |
145 double minimum_factor, | 145 double minimum_factor, |
146 double maximum_factor) = 0; | 146 double maximum_factor) = 0; |
147 // Testing and URLUtil. | 147 // Testing and URLUtil. |
148 virtual PP_Var GetDocumentURL(PP_Instance instance, | 148 virtual PP_Var GetDocumentURL(PP_Instance instance, |
149 PP_URLComponents_Dev* components) = 0; | 149 PP_URLComponents_Dev* components) = 0; |
150 #if !defined(OS_NACL) | 150 #if !defined(OS_NACL) |
151 // Content Decryptor. | 151 // Content Decryptor. |
152 virtual void SessionCreated(PP_Instance instance, | 152 virtual void PromiseResolved(PP_Instance instance, uint32 promise_id) = 0; |
153 uint32_t session_id, | 153 virtual void PromiseResolvedWithSession(PP_Instance instance, |
154 PP_Var web_session_id) = 0; | 154 uint32 promise_id, |
| 155 PP_Var web_session_id_var) = 0; |
| 156 virtual void PromiseRejected(PP_Instance instance, |
| 157 uint32 promise_id, |
| 158 PP_ExceptionCode exception_code, |
| 159 uint32 system_code, |
| 160 PP_Var error_description_var) = 0; |
155 virtual void SessionMessage(PP_Instance instance, | 161 virtual void SessionMessage(PP_Instance instance, |
156 uint32_t session_id, | 162 PP_Var web_session_id_var, |
157 PP_Var message, | 163 PP_Var message_var, |
158 PP_Var destination_url) = 0; | 164 PP_Var destination_url_var) = 0; |
159 virtual void SessionReady(PP_Instance instance, uint32_t session_id) = 0; | 165 virtual void SessionReady(PP_Instance instance, |
160 virtual void SessionClosed(PP_Instance instance, uint32_t session_id) = 0; | 166 PP_Var web_session_id_var) = 0; |
| 167 virtual void SessionClosed(PP_Instance instance, |
| 168 PP_Var web_session_id_var) = 0; |
161 virtual void SessionError(PP_Instance instance, | 169 virtual void SessionError(PP_Instance instance, |
162 uint32_t session_id, | 170 PP_Var web_session_id_var, |
163 int32_t media_error, | 171 PP_ExceptionCode exception_code, |
164 uint32_t system_code) = 0; | 172 uint32 system_code, |
| 173 PP_Var error_description_var) = 0; |
165 virtual void DeliverBlock(PP_Instance instance, | 174 virtual void DeliverBlock(PP_Instance instance, |
166 PP_Resource decrypted_block, | 175 PP_Resource decrypted_block, |
167 const PP_DecryptedBlockInfo* block_info) = 0; | 176 const PP_DecryptedBlockInfo* block_info) = 0; |
168 virtual void DecoderInitializeDone(PP_Instance instance, | 177 virtual void DecoderInitializeDone(PP_Instance instance, |
169 PP_DecryptorStreamType decoder_type, | 178 PP_DecryptorStreamType decoder_type, |
170 uint32_t request_id, | 179 uint32_t request_id, |
171 PP_Bool success) = 0; | 180 PP_Bool success) = 0; |
172 virtual void DecoderDeinitializeDone(PP_Instance instance, | 181 virtual void DecoderDeinitializeDone(PP_Instance instance, |
173 PP_DecryptorStreamType decoder_type, | 182 PP_DecryptorStreamType decoder_type, |
174 uint32_t request_id) = 0; | 183 uint32_t request_id) = 0; |
(...skipping 21 matching lines...) Expand all Loading... |
196 PP_URLComponents_Dev* components) = 0; | 205 PP_URLComponents_Dev* components) = 0; |
197 #endif // !defined(OS_NACL) | 206 #endif // !defined(OS_NACL) |
198 | 207 |
199 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 208 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
200 }; | 209 }; |
201 | 210 |
202 } // namespace thunk | 211 } // namespace thunk |
203 } // namespace ppapi | 212 } // namespace ppapi |
204 | 213 |
205 #endif // PPAPI_THUNK_INSTANCE_API_H_ | 214 #endif // PPAPI_THUNK_INSTANCE_API_H_ |
OLD | NEW |