| 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 #ifndef WEBKIT_GLUE_PLUGIN_PLUGIN_LIST_H__ | 5 #ifndef WEBKIT_GLUE_PLUGIN_PLUGIN_LIST_H__ |
| 6 #define WEBKIT_GLUE_PLUGIN_PLUGIN_LIST_H__ | 6 #define WEBKIT_GLUE_PLUGIN_PLUGIN_LIST_H__ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 { | 28 { |
| 29 | 29 |
| 30 #define kDefaultPluginLibraryName FILE_PATH_LITERAL("default_plugin") | 30 #define kDefaultPluginLibraryName FILE_PATH_LITERAL("default_plugin") |
| 31 #define kGearsPluginLibraryName FILE_PATH_LITERAL("gears") | 31 #define kGearsPluginLibraryName FILE_PATH_LITERAL("gears") |
| 32 | 32 |
| 33 class PluginInstance; | 33 class PluginInstance; |
| 34 | 34 |
| 35 // This struct holds entry points into a plugin. The entry points are | 35 // This struct holds entry points into a plugin. The entry points are |
| 36 // slightly different between Linux and other platforms. | 36 // slightly different between Linux and other platforms. |
| 37 struct PluginEntryPoints { | 37 struct PluginEntryPoints { |
| 38 #if !defined(OS_LINUX) | 38 #if !defined(OS_LINUX) && !defined(OS_FREEBSD) |
| 39 NP_GetEntryPointsFunc np_getentrypoints; | 39 NP_GetEntryPointsFunc np_getentrypoints; |
| 40 #endif | 40 #endif |
| 41 NP_InitializeFunc np_initialize; | 41 NP_InitializeFunc np_initialize; |
| 42 NP_ShutdownFunc np_shutdown; | 42 NP_ShutdownFunc np_shutdown; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 // This struct fully describes a plugin. For external plugins, it's read in from | 45 // This struct fully describes a plugin. For external plugins, it's read in from |
| 46 // the version info of the dll; For internal plugins, it's predefined and | 46 // the version info of the dll; For internal plugins, it's predefined and |
| 47 // includes addresses of entry functions. (Yes, it's Win32 NPAPI-centric, but | 47 // includes addresses of entry functions. (Yes, it's Win32 NPAPI-centric, but |
| 48 // it'll do for holding descriptions of internal plugins cross-platform.) | 48 // it'll do for holding descriptions of internal plugins cross-platform.) |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 Lock lock_; | 227 Lock lock_; |
| 228 | 228 |
| 229 friend struct base::DefaultLazyInstanceTraits<PluginList>; | 229 friend struct base::DefaultLazyInstanceTraits<PluginList>; |
| 230 | 230 |
| 231 DISALLOW_COPY_AND_ASSIGN(PluginList); | 231 DISALLOW_COPY_AND_ASSIGN(PluginList); |
| 232 }; | 232 }; |
| 233 | 233 |
| 234 } // namespace NPAPI | 234 } // namespace NPAPI |
| 235 | 235 |
| 236 #endif // WEBKIT_GLUE_PLUGIN_PLUGIN_LIST_H__ | 236 #endif // WEBKIT_GLUE_PLUGIN_PLUGIN_LIST_H__ |
| OLD | NEW |