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/pp_print_settings_dev.h" | 10 #include "ppapi/c/dev/pp_print_settings_dev.h" |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 const char* text, | 132 const char* text, |
133 uint32_t caret, | 133 uint32_t caret, |
134 uint32_t anchor) = 0; | 134 uint32_t anchor) = 0; |
135 | 135 |
136 // Zoom. | 136 // Zoom. |
137 virtual void ZoomChanged(PP_Instance instance, double factor) = 0; | 137 virtual void ZoomChanged(PP_Instance instance, double factor) = 0; |
138 virtual void ZoomLimitsChanged(PP_Instance instance, | 138 virtual void ZoomLimitsChanged(PP_Instance instance, |
139 double minimum_factor, | 139 double minimum_factor, |
140 double maximium_factor) = 0; | 140 double maximium_factor) = 0; |
141 #if !defined(OS_NACL) | 141 #if !defined(OS_NACL) |
| 142 // Content Decryptor. |
| 143 virtual void NeedKey(PP_Instance instance, |
| 144 PP_Var key_system, |
| 145 PP_Var session_id, |
| 146 PP_Var init_data) = 0; |
| 147 virtual void KeyAdded(PP_Instance instance, |
| 148 PP_Var key_system, |
| 149 PP_Var session_id) = 0; |
| 150 virtual void KeyMessage(PP_Instance instance, |
| 151 PP_Var key_system, |
| 152 PP_Var session_id, |
| 153 PP_Resource message, |
| 154 PP_Var default_url) = 0; |
| 155 virtual void KeyError(PP_Instance instance, |
| 156 PP_Var key_system, |
| 157 PP_Var session_id, |
| 158 int32_t media_error, |
| 159 int32_t system_error) = 0; |
| 160 virtual void DeliverBlock(PP_Instance instance, |
| 161 PP_Resource decrypted_block, |
| 162 int32_t request_id) = 0; |
| 163 virtual void DeliverFrame(PP_Instance instance, |
| 164 PP_Resource decrypted_frame, |
| 165 int32_t request_id) = 0; |
| 166 virtual void DeliverSamples(PP_Instance instance, |
| 167 PP_Resource decrypted_samples, |
| 168 int32_t request_id) = 0; |
| 169 |
142 // URLUtil. | 170 // URLUtil. |
143 virtual PP_Var ResolveRelativeToDocument( | 171 virtual PP_Var ResolveRelativeToDocument( |
144 PP_Instance instance, | 172 PP_Instance instance, |
145 PP_Var relative, | 173 PP_Var relative, |
146 PP_URLComponents_Dev* components) = 0; | 174 PP_URLComponents_Dev* components) = 0; |
147 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) = 0; | 175 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) = 0; |
148 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance, | 176 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance, |
149 PP_Instance target) = 0; | 177 PP_Instance target) = 0; |
150 virtual PP_Var GetDocumentURL(PP_Instance instance, | 178 virtual PP_Var GetDocumentURL(PP_Instance instance, |
151 PP_URLComponents_Dev* components) = 0; | 179 PP_URLComponents_Dev* components) = 0; |
152 virtual PP_Var GetPluginInstanceURL(PP_Instance instance, | 180 virtual PP_Var GetPluginInstanceURL(PP_Instance instance, |
153 PP_URLComponents_Dev* components) = 0; | 181 PP_URLComponents_Dev* components) = 0; |
154 #endif // !defined(OS_NACL) | 182 #endif // !defined(OS_NACL) |
155 | 183 |
156 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 184 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
157 }; | 185 }; |
158 | 186 |
159 } // namespace thunk | 187 } // namespace thunk |
160 } // namespace ppapi | 188 } // namespace ppapi |
161 | 189 |
162 #endif // PPAPI_THUNK_INSTANCE_API_H_ | 190 #endif // PPAPI_THUNK_INSTANCE_API_H_ |
OLD | NEW |