Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1441)

Side by Side Diff: webkit/glue/plugins/plugin_list.h

Issue 519030: bsds: views/ and webkit/ support for FreeBSD/OpenBSD (Closed)
Patch Set: Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2009 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 WEBKIT_GLUE_PLUGINS_PLUGIN_LIST_H_ 5 #ifndef WEBKIT_GLUE_PLUGINS_PLUGIN_LIST_H_
6 #define WEBKIT_GLUE_PLUGINS_PLUGIN_LIST_H_ 6 #define WEBKIT_GLUE_PLUGINS_PLUGIN_LIST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 13 matching lines...) Expand all
24 } // namespace base 24 } // namespace base
25 25
26 namespace NPAPI { 26 namespace NPAPI {
27 27
28 #define kDefaultPluginLibraryName FILE_PATH_LITERAL("default_plugin") 28 #define kDefaultPluginLibraryName FILE_PATH_LITERAL("default_plugin")
29 #define kGearsPluginLibraryName FILE_PATH_LITERAL("gears") 29 #define kGearsPluginLibraryName FILE_PATH_LITERAL("gears")
30 30
31 class PluginInstance; 31 class PluginInstance;
32 32
33 // This struct holds entry points into a plugin. The entry points are 33 // This struct holds entry points into a plugin. The entry points are
34 // slightly different between Linux and other platforms. 34 // slightly different between Win/Mac and Unixes.
35 struct PluginEntryPoints { 35 struct PluginEntryPoints {
36 #if !defined(OS_LINUX) && !defined(OS_FREEBSD) 36 #if !defined(OS_POSIX) || defined(OS_MACOSX)
37 NP_GetEntryPointsFunc np_getentrypoints; 37 NP_GetEntryPointsFunc np_getentrypoints;
38 #endif 38 #endif
39 NP_InitializeFunc np_initialize; 39 NP_InitializeFunc np_initialize;
40 NP_ShutdownFunc np_shutdown; 40 NP_ShutdownFunc np_shutdown;
41 }; 41 };
42 42
43 // This struct fully describes a plugin. For external plugins, it's read in from 43 // This struct fully describes a plugin. For external plugins, it's read in from
44 // the version info of the dll; For internal plugins, it's predefined and 44 // the version info of the dll; For internal plugins, it's predefined and
45 // includes addresses of entry functions. (Yes, it's Win32 NPAPI-centric, but 45 // includes addresses of entry functions. (Yes, it's Win32 NPAPI-centric, but
46 // it'll do for holding descriptions of internal plugins cross-platform.) 46 // it'll do for holding descriptions of internal plugins cross-platform.)
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 Lock lock_; 221 Lock lock_;
222 222
223 friend struct base::DefaultLazyInstanceTraits<PluginList>; 223 friend struct base::DefaultLazyInstanceTraits<PluginList>;
224 224
225 DISALLOW_COPY_AND_ASSIGN(PluginList); 225 DISALLOW_COPY_AND_ASSIGN(PluginList);
226 }; 226 };
227 227
228 } // namespace NPAPI 228 } // namespace NPAPI
229 229
230 #endif // WEBKIT_GLUE_PLUGINS_PLUGIN_LIST_H_ 230 #endif // WEBKIT_GLUE_PLUGINS_PLUGIN_LIST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698