| 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 #include <algorithm> | 5 #include <algorithm> |
| 6 #include <string> | 6 #include <string> |
| 7 | 7 |
| 8 #include "third_party/npapi/bindings/npapi.h" | 8 #include "third_party/npapi/bindings/npapi.h" |
| 9 #include "webkit/glue/plugins/nphostapi.h" | 9 #include "webkit/glue/plugins/nphostapi.h" |
| 10 | 10 |
| 11 namespace default_plugin { | 11 namespace default_plugin { |
| 12 | 12 |
| 13 extern NPNetscapeFuncs* g_browser; | 13 extern NPNetscapeFuncs* g_browser; |
| 14 | 14 |
| 15 // Standard NPAPI functions. | 15 // Standard NPAPI functions. |
| 16 NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc, | 16 NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc, |
| 17 char* argn[], char* argv[], NPSavedData* saved); | 17 char* argn[], char* argv[], NPSavedData* saved); |
| 18 NPError NPP_Destroy(NPP instance, NPSavedData** save); | 18 NPError NPP_Destroy(NPP instance, NPSavedData** save); |
| 19 NPError NPP_SetWindow(NPP instance, NPWindow* window); | 19 NPError NPP_SetWindow(NPP instance, NPWindow* window); |
| 20 NPError NPP_NewStream(NPP instance, NPMIMEType type, NPStream* stream, | 20 NPError NPP_NewStream(NPP instance, NPMIMEType type, NPStream* stream, |
| 21 NPBool seekable, uint16* stype); | 21 NPBool seekable, uint16* stype); |
| 22 NPError NPP_DestroyStream(NPP instance, NPStream* stream, NPReason reason); | 22 NPError NPP_DestroyStream(NPP instance, NPStream* stream, NPReason reason); |
| 23 int32 NPP_WriteReady(NPP instance, NPStream* stream); | 23 int32 NPP_WriteReady(NPP instance, NPStream* stream); |
| 24 int32 NPP_Write(NPP instance, NPStream* stream, int32 offset, int32 len, | 24 int32 NPP_Write(NPP instance, NPStream* stream, int32 offset, int32 len, |
| 25 void* buffer); | 25 void* buffer); |
| 26 void NPP_URLNotify(NPP instance, const char* url, NPReason reason, | 26 void NPP_URLNotify(NPP instance, const char* url, NPReason reason, |
| 27 void* notifyData); | 27 void* notifyData); |
| 28 int16 NPP_HandleEvent(NPP instance, void* event); | 28 int16 NPP_HandleEvent(NPP instance, void* event); |
| 29 | 29 |
| 30 NPError WINAPI NP_GetEntryPoints(NPPluginFuncs* funcs); | 30 NPError API_CALL NP_GetEntryPoints(NPPluginFuncs* funcs); |
| 31 NPError WINAPI NP_Initialize(NPNetscapeFuncs* funcs); | 31 NPError API_CALL NP_Initialize(NPNetscapeFuncs* funcs); |
| 32 NPError WINAPI NP_Shutdown(void); | 32 NPError API_CALL NP_Shutdown(void); |
| 33 | 33 |
| 34 } // default_plugin | 34 } // default_plugin |
| 35 | |
| OLD | NEW |