| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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> | |
| 7 | 6 |
| 8 #include "third_party/npapi/bindings/npapi.h" | 7 #include "third_party/npapi/bindings/npapi.h" |
| 9 #include "third_party/npapi/bindings/nphostapi.h" | 8 #include "third_party/npapi/bindings/nphostapi.h" |
| 10 | 9 |
| 11 namespace default_plugin { | 10 namespace default_plugin { |
| 12 | 11 |
| 13 extern NPNetscapeFuncs* g_browser; | 12 extern NPNetscapeFuncs* g_browser; |
| 14 | 13 |
| 15 // Standard NPAPI functions. | 14 // Standard NPAPI functions. |
| 16 NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16_t mode, | 15 NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16_t mode, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 32 | 31 |
| 33 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 32 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 34 NPError API_CALL NP_Initialize(NPNetscapeFuncs* funcs, NPPluginFuncs* p_funcs); | 33 NPError API_CALL NP_Initialize(NPNetscapeFuncs* funcs, NPPluginFuncs* p_funcs); |
| 35 #else | 34 #else |
| 36 NPError API_CALL NP_GetEntryPoints(NPPluginFuncs* funcs); | 35 NPError API_CALL NP_GetEntryPoints(NPPluginFuncs* funcs); |
| 37 NPError API_CALL NP_Initialize(NPNetscapeFuncs* funcs); | 36 NPError API_CALL NP_Initialize(NPNetscapeFuncs* funcs); |
| 38 #endif | 37 #endif |
| 39 NPError API_CALL NP_Shutdown(void); | 38 NPError API_CALL NP_Shutdown(void); |
| 40 | 39 |
| 41 } // default_plugin | 40 } // default_plugin |
| OLD | NEW |