OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // TODO: Did not implement JRIGlobalRef function yet. Not sure if this is used
? | 5 // TODO: Did not implement JRIGlobalRef function yet. Not sure if this is used
? |
6 | 6 |
7 #ifndef WEBKIT_GLUE_PLUGIN_NPHOSTAPI_H__ | 7 #ifndef WEBKIT_GLUE_PLUGIN_NPHOSTAPI_H__ |
8 #define WEBKIT_GLUE_PLUGIN_NPHOSTAPI_H__ | 8 #define WEBKIT_GLUE_PLUGIN_NPHOSTAPI_H__ |
9 | 9 |
10 #include "base/port.h" | 10 #include "base/port.h" |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 typedef NPError (*NPN_GetAuthenticationInfoPtr)(NPP npp, | 199 typedef NPError (*NPN_GetAuthenticationInfoPtr)(NPP npp, |
200 const char *protocol, | 200 const char *protocol, |
201 const char *host, | 201 const char *host, |
202 int32_t port, | 202 int32_t port, |
203 const char *scheme, | 203 const char *scheme, |
204 const char *realm, | 204 const char *realm, |
205 char **username, | 205 char **username, |
206 uint32_t *ulen, | 206 uint32_t *ulen, |
207 char **password, | 207 char **password, |
208 uint32_t *plen); | 208 uint32_t *plen); |
| 209 typedef uint32 (*NPN_ScheduleTimerPtr)(NPP npp, |
| 210 uint32 interval, |
| 211 NPBool repeat, |
| 212 void (*timerFunc)(NPP npp, uint32 timerID)); |
| 213 typedef void (*NPN_UnscheduleTimerPtr)(NPP npp, |
| 214 uint32 timerID); |
209 | 215 |
210 // | 216 // |
211 // NPAPI Function table of NPP functions (functions provided by plugin to host) | 217 // NPAPI Function table of NPP functions (functions provided by plugin to host) |
212 // | 218 // |
213 typedef struct _NPPluginFuncs { | 219 typedef struct _NPPluginFuncs { |
214 unsigned short size; | 220 unsigned short size; |
215 unsigned short version; | 221 unsigned short version; |
216 NPP_NewProcPtr newp; | 222 NPP_NewProcPtr newp; |
217 NPP_DestroyProcPtr destroy; | 223 NPP_DestroyProcPtr destroy; |
218 NPP_SetWindowProcPtr setwindow; | 224 NPP_SetWindowProcPtr setwindow; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 NPN_ReleaseVariantValueProcPtr releasevariantvalue; | 283 NPN_ReleaseVariantValueProcPtr releasevariantvalue; |
278 NPN_SetExceptionProcPtr setexception; | 284 NPN_SetExceptionProcPtr setexception; |
279 NPN_PushPopupsEnabledStateProcPtr pushpopupsenabledstate; | 285 NPN_PushPopupsEnabledStateProcPtr pushpopupsenabledstate; |
280 NPN_PopPopupsEnabledStateProcPtr poppopupsenabledstate; | 286 NPN_PopPopupsEnabledStateProcPtr poppopupsenabledstate; |
281 NPN_EnumerateProcPtr enumerate; | 287 NPN_EnumerateProcPtr enumerate; |
282 NPN_PluginThreadAsyncCallProcPtr pluginthreadasynccall; | 288 NPN_PluginThreadAsyncCallProcPtr pluginthreadasynccall; |
283 NPN_ConstructProcPtr construct; | 289 NPN_ConstructProcPtr construct; |
284 NPN_GetValueForURLPtr getvalueforurl; | 290 NPN_GetValueForURLPtr getvalueforurl; |
285 NPN_SetValueForURLPtr setvalueforurl; | 291 NPN_SetValueForURLPtr setvalueforurl; |
286 NPN_GetAuthenticationInfoPtr getauthenticationinfo; | 292 NPN_GetAuthenticationInfoPtr getauthenticationinfo; |
| 293 NPN_ScheduleTimerPtr scheduletimer; |
| 294 NPN_UnscheduleTimerPtr unscheduletimer; |
287 } NPNetscapeFuncs; | 295 } NPNetscapeFuncs; |
288 | 296 |
289 // | 297 // |
290 // NPAPI library entry points | 298 // NPAPI library entry points |
291 // | 299 // |
292 #if defined(OS_LINUX) || defined(OS_FREEBSD) | 300 #if defined(OS_LINUX) || defined(OS_FREEBSD) |
293 typedef NPError (API_CALL * NP_InitializeFunc)(NPNetscapeFuncs* pNFuncs, | 301 typedef NPError (API_CALL * NP_InitializeFunc)(NPNetscapeFuncs* pNFuncs, |
294 NPPluginFuncs* pPFuncs); | 302 NPPluginFuncs* pPFuncs); |
295 #else | 303 #else |
296 typedef NPError (API_CALL * NP_InitializeFunc)(NPNetscapeFuncs* pFuncs); | 304 typedef NPError (API_CALL * NP_InitializeFunc)(NPNetscapeFuncs* pFuncs); |
297 typedef NPError (API_CALL * NP_GetEntryPointsFunc)(NPPluginFuncs* pFuncs); | 305 typedef NPError (API_CALL * NP_GetEntryPointsFunc)(NPPluginFuncs* pFuncs); |
298 #endif | 306 #endif |
299 typedef NPError (API_CALL * NP_ShutdownFunc)(void); | 307 typedef NPError (API_CALL * NP_ShutdownFunc)(void); |
300 | 308 |
301 #ifdef __cplusplus | 309 #ifdef __cplusplus |
302 } // extern "C" | 310 } // extern "C" |
303 #endif | 311 #endif |
304 | 312 |
305 #endif // WEBKIT_GLUE_PLUGIN_NPHOSTAPI_H__ | 313 #endif // WEBKIT_GLUE_PLUGIN_NPHOSTAPI_H__ |
OLD | NEW |