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 #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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/file_path.h" | 13 #include "base/file_path.h" |
14 #include "base/linked_ptr.h" | 14 #include "base/linked_ptr.h" |
15 #include "base/lock.h" | 15 #include "base/lock.h" |
16 #include "third_party/npapi/bindings/nphostapi.h" | 16 #include "third_party/npapi/bindings/nphostapi.h" |
17 #include "webkit/glue/plugins/plugin_group.h" | 17 #include "webkit/plugins/npapi/plugin_group.h" |
18 #include "webkit/glue/plugins/webplugininfo.h" | 18 #include "webkit/plugins/npapi/webplugininfo.h" |
19 | 19 |
20 class GURL; | 20 class GURL; |
21 | 21 |
22 namespace base { | 22 namespace base { |
23 | 23 |
24 template <typename T> | 24 template <typename T> |
25 struct DefaultLazyInstanceTraits; | 25 struct DefaultLazyInstanceTraits; |
26 | 26 |
27 } // namespace base | 27 } // namespace base |
28 | 28 |
29 namespace NPAPI { | 29 namespace webkit { |
| 30 namespace npapi { |
30 | 31 |
31 #define kDefaultPluginLibraryName FILE_PATH_LITERAL("default_plugin") | 32 extern FilePath::CharType kDefaultPluginLibraryName[]; |
32 #define kGearsPluginLibraryName FILE_PATH_LITERAL("gears") | |
33 | 33 |
34 class PluginInstance; | 34 class PluginInstance; |
35 | 35 |
36 // This struct holds entry points into a plugin. The entry points are | 36 // This struct holds entry points into a plugin. The entry points are |
37 // slightly different between Win/Mac and Unixes. | 37 // slightly different between Win/Mac and Unixes. |
38 struct PluginEntryPoints { | 38 struct PluginEntryPoints { |
39 #if !defined(OS_POSIX) || defined(OS_MACOSX) | 39 #if !defined(OS_POSIX) || defined(OS_MACOSX) |
40 NP_GetEntryPointsFunc np_getentrypoints; | 40 NP_GetEntryPointsFunc np_getentrypoints; |
41 #endif | 41 #endif |
42 NP_InitializeFunc np_initialize; | 42 NP_InitializeFunc np_initialize; |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 | 326 |
327 // Need synchronization for the above members since this object can be | 327 // Need synchronization for the above members since this object can be |
328 // accessed on multiple threads. | 328 // accessed on multiple threads. |
329 Lock lock_; | 329 Lock lock_; |
330 | 330 |
331 friend struct base::DefaultLazyInstanceTraits<PluginList>; | 331 friend struct base::DefaultLazyInstanceTraits<PluginList>; |
332 | 332 |
333 DISALLOW_COPY_AND_ASSIGN(PluginList); | 333 DISALLOW_COPY_AND_ASSIGN(PluginList); |
334 }; | 334 }; |
335 | 335 |
336 } // namespace NPAPI | 336 } // namespace npapi |
| 337 } // namespace webkit |
337 | 338 |
338 #endif // WEBKIT_GLUE_PLUGINS_PLUGIN_LIST_H_ | 339 #endif // WEBKIT_GLUE_PLUGINS_PLUGIN_LIST_H_ |
OLD | NEW |