OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 GPU_GPU_PLUGIN_GPU_PLUGIN_H_ | 5 #ifndef GPU_GPU_PLUGIN_GPU_PLUGIN_H_ |
6 #define GPU_GPU_PLUGIN_GPU_PLUGIN_H_ | 6 #define GPU_GPU_PLUGIN_GPU_PLUGIN_H_ |
7 | 7 |
8 #include "gpu/np_utils/np_headers.h" | 8 #include "third_party/npapi/bindings/npapi.h" |
| 9 #include "third_party/npapi/bindings/npruntime.h" |
9 | 10 |
10 typedef struct _NPPluginFuncs NPPluginFuncs; | 11 typedef struct _NPPluginFuncs NPPluginFuncs; |
11 typedef struct _NPNetscapeFuncs NPNetscapeFuncs; | 12 typedef struct _NPNetscapeFuncs NPNetscapeFuncs; |
12 | 13 |
13 namespace gpu_plugin { | 14 namespace gpu_plugin { |
14 | 15 |
15 // Declarations of NPAPI plugin entry points. | 16 // Declarations of NPAPI plugin entry points. |
16 | 17 |
17 NPError NP_GetEntryPoints(NPPluginFuncs* funcs); | 18 NPError NP_GetEntryPoints(NPPluginFuncs* funcs); |
18 | 19 |
19 #if defined(OS_LINUX) | 20 #if defined(OS_LINUX) |
20 NPError NP_Initialize(NPNetscapeFuncs *browser_funcs, | 21 NPError NP_Initialize(NPNetscapeFuncs *browser_funcs, |
21 NPPluginFuncs* plugin_funcs); | 22 NPPluginFuncs* plugin_funcs); |
22 #else | 23 #else |
23 NPError NP_Initialize(NPNetscapeFuncs* browser_funcs); | 24 NPError NP_Initialize(NPNetscapeFuncs* browser_funcs); |
24 #endif | 25 #endif |
25 | 26 |
26 NPError NP_Shutdown(); | 27 NPError NP_Shutdown(); |
27 | 28 |
28 } // namespace gpu_plugin | 29 } // namespace gpu_plugin |
29 | 30 |
30 #endif // GPU_GPU_PLUGIN_GPU_PLUGIN_H_ | 31 #endif // GPU_GPU_PLUGIN_GPU_PLUGIN_H_ |
OLD | NEW |