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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 virtual void ZoomChanged(PP_Instance instance, double factor) = 0; | 136 virtual void ZoomChanged(PP_Instance instance, double factor) = 0; |
137 virtual void ZoomLimitsChanged(PP_Instance instance, | 137 virtual void ZoomLimitsChanged(PP_Instance instance, |
138 double minimum_factor, | 138 double minimum_factor, |
139 double maximum_factor) = 0; | 139 double maximum_factor) = 0; |
140 // Testing and URLUtil. | 140 // Testing and URLUtil. |
141 virtual PP_Var GetDocumentURL(PP_Instance instance, | 141 virtual PP_Var GetDocumentURL(PP_Instance instance, |
142 PP_URLComponents_Dev* components) = 0; | 142 PP_URLComponents_Dev* components) = 0; |
143 #if !defined(OS_NACL) | 143 #if !defined(OS_NACL) |
144 // Content Decryptor. | 144 // Content Decryptor. |
145 virtual void SessionCreated(PP_Instance instance, | 145 virtual void SessionCreated(PP_Instance instance, |
146 uint32 reference_id, | 146 uint32 session_id, |
147 PP_Var session_id) = 0; | 147 PP_Var web_session_id) = 0; |
148 virtual void SessionMessage(PP_Instance instance, | 148 virtual void SessionMessage(PP_Instance instance, |
149 uint32 reference_id, | 149 uint32 session_id, |
150 PP_Var message, | 150 PP_Var message, |
151 PP_Var destination_url) = 0; | 151 PP_Var destination_url) = 0; |
152 virtual void SessionReady(PP_Instance instance, uint32 reference_id) = 0; | 152 virtual void SessionReady(PP_Instance instance, uint32 session_id) = 0; |
153 virtual void SessionClosed(PP_Instance instance, uint32 reference_id) = 0; | 153 virtual void SessionClosed(PP_Instance instance, uint32 session_id) = 0; |
154 virtual void SessionError(PP_Instance instance, | 154 virtual void SessionError(PP_Instance instance, |
155 uint32 reference_id, | 155 uint32 session_id, |
156 int32_t media_error, | 156 int32_t media_error, |
157 int32_t system_error) = 0; | 157 int32_t system_error) = 0; |
158 virtual void DeliverBlock(PP_Instance instance, | 158 virtual void DeliverBlock(PP_Instance instance, |
159 PP_Resource decrypted_block, | 159 PP_Resource decrypted_block, |
160 const PP_DecryptedBlockInfo* block_info) = 0; | 160 const PP_DecryptedBlockInfo* block_info) = 0; |
161 virtual void DecoderInitializeDone(PP_Instance instance, | 161 virtual void DecoderInitializeDone(PP_Instance instance, |
162 PP_DecryptorStreamType decoder_type, | 162 PP_DecryptorStreamType decoder_type, |
163 uint32_t request_id, | 163 uint32_t request_id, |
164 PP_Bool success) = 0; | 164 PP_Bool success) = 0; |
165 virtual void DecoderDeinitializeDone(PP_Instance instance, | 165 virtual void DecoderDeinitializeDone(PP_Instance instance, |
(...skipping 23 matching lines...) Expand all Loading... |
189 PP_URLComponents_Dev* components) = 0; | 189 PP_URLComponents_Dev* components) = 0; |
190 #endif // !defined(OS_NACL) | 190 #endif // !defined(OS_NACL) |
191 | 191 |
192 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 192 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
193 }; | 193 }; |
194 | 194 |
195 } // namespace thunk | 195 } // namespace thunk |
196 } // namespace ppapi | 196 } // namespace ppapi |
197 | 197 |
198 #endif // PPAPI_THUNK_INSTANCE_API_H_ | 198 #endif // PPAPI_THUNK_INSTANCE_API_H_ |
OLD | NEW |