OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_COMMON_PLUGIN_LIST_H_ | 5 #ifndef CONTENT_COMMON_PLUGIN_LIST_H_ |
6 #define CONTENT_COMMON_PLUGIN_LIST_H_ | 6 #define CONTENT_COMMON_PLUGIN_LIST_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
16 #include "base/lazy_instance.h" | 16 #include "base/lazy_instance.h" |
17 #include "base/memory/linked_ptr.h" | |
18 #include "base/memory/scoped_vector.h" | |
19 #include "base/synchronization/lock.h" | 17 #include "base/synchronization/lock.h" |
20 #include "content/common/content_export.h" | 18 #include "content/common/content_export.h" |
21 #include "content/public/common/webplugininfo.h" | 19 #include "content/public/common/webplugininfo.h" |
22 | 20 |
| 21 #if !defined(ENABLE_PLUGINS) |
| 22 #error "Plugins should be enabled" |
| 23 #endif |
| 24 |
23 class GURL; | 25 class GURL; |
24 | 26 |
25 namespace content { | 27 namespace content { |
26 | 28 |
27 // The PluginList is responsible for loading our NPAPI based plugins. It does | 29 // The PluginList is responsible for loading our NPAPI based plugins. It does |
28 // so in whatever manner is appropriate for the platform. On Windows, it loads | 30 // so in whatever manner is appropriate for the platform. On Windows, it loads |
29 // plugins from a known directory by looking for DLLs which start with "NP", | 31 // plugins from a known directory by looking for DLLs which start with "NP", |
30 // and checking to see if they are valid NPAPI libraries. On the Mac, it walks | 32 // and checking to see if they are valid NPAPI libraries. On the Mac, it walks |
31 // the machine-wide and user plugin directories and loads anything that has | 33 // the machine-wide and user plugin directories and loads anything that has |
32 // the correct types. On Linux, it walks the plugin directories as well | 34 // the correct types. On Linux, it walks the plugin directories as well |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 // Flag indicating whether third_party plugins will be searched for | 239 // Flag indicating whether third_party plugins will be searched for |
238 // in common places. | 240 // in common places. |
239 bool plugins_discovery_disabled_; | 241 bool plugins_discovery_disabled_; |
240 | 242 |
241 DISALLOW_COPY_AND_ASSIGN(PluginList); | 243 DISALLOW_COPY_AND_ASSIGN(PluginList); |
242 }; | 244 }; |
243 | 245 |
244 } // namespace content | 246 } // namespace content |
245 | 247 |
246 #endif // CONTENT_COMMON_PLUGIN_LIST_H_ | 248 #endif // CONTENT_COMMON_PLUGIN_LIST_H_ |
OLD | NEW |