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

Side by Side Diff: content/common/plugin_list.h

Issue 525513003: Cleanup: Put more plugin code behind the ENABLE_PLUGINS ifdef. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 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
« no previous file with comments | « content/common/pepper_renderer_instance_data.h ('k') | content/common/utility_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/common/pepper_renderer_instance_data.h ('k') | content/common/utility_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698