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 "gpu/gpu_plugin/gpu_plugin.h" | 5 #include "gpu/gpu_plugin/gpu_plugin.h" |
6 #include "gpu/gpu_plugin/gpu_plugin_object_factory.h" | 6 #include "gpu/gpu_plugin/gpu_plugin_object_factory.h" |
7 #include "gpu/np_utils/np_browser.h" | 7 #include "gpu/np_utils/np_browser.h" |
8 #include "gpu/np_utils/np_plugin_object.h" | 8 #include "gpu/np_utils/np_plugin_object.h" |
9 #include "gpu/np_utils/np_plugin_object_factory.h" | 9 #include "gpu/np_utils/np_plugin_object_factory.h" |
10 | |
11 #if defined(O3D_IN_CHROME) | |
12 #include "webkit/glue/plugins/nphostapi.h" | 10 #include "webkit/glue/plugins/nphostapi.h" |
13 #else | |
14 #include "o3d/third_party/npapi/include/npfunctions.h" | |
15 #endif | |
16 | 11 |
17 using np_utils::NPBrowser; | 12 using np_utils::NPBrowser; |
18 using np_utils::NPPluginObjectFactory; | 13 using np_utils::NPPluginObjectFactory; |
19 using np_utils::PluginObject; | 14 using np_utils::PluginObject; |
20 | 15 |
21 namespace gpu_plugin { | 16 namespace gpu_plugin { |
22 | 17 |
23 // Definitions of NPAPI plugin entry points. | 18 // Definitions of NPAPI plugin entry points. |
24 | 19 |
25 namespace { | 20 namespace { |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 NPError NP_Shutdown() { | 126 NPError NP_Shutdown() { |
132 if (!g_browser) | 127 if (!g_browser) |
133 return NPERR_GENERIC_ERROR; | 128 return NPERR_GENERIC_ERROR; |
134 | 129 |
135 delete g_browser; | 130 delete g_browser; |
136 g_browser = NULL; | 131 g_browser = NULL; |
137 | 132 |
138 return NPERR_NO_ERROR; | 133 return NPERR_NO_ERROR; |
139 } | 134 } |
140 } // namespace gpu_plugin | 135 } // namespace gpu_plugin |
OLD | NEW |