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

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

Issue 2512563003: Convert enable_plugins to a buildflag header. (Closed)
Patch Set: Merge Created 4 years, 1 month 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/view_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/callback.h" 13 #include "base/callback.h"
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/lazy_instance.h" 15 #include "base/lazy_instance.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/synchronization/lock.h" 17 #include "base/synchronization/lock.h"
18 #include "build/build_config.h" 18 #include "build/build_config.h"
19 #include "content/common/content_export.h" 19 #include "content/common/content_export.h"
20 #include "content/public/common/webplugininfo.h" 20 #include "content/public/common/webplugininfo.h"
21 #include "ppapi/features/features.h"
21 22
22 #if !defined(ENABLE_PLUGINS) 23 #if !BUILDFLAG(ENABLE_PLUGINS)
23 #error "Plugins should be enabled" 24 #error "Plugins should be enabled"
24 #endif 25 #endif
25 26
26 class GURL; 27 class GURL;
27 28
28 namespace content { 29 namespace content {
29 30
30 // The PluginList is responsible for loading our NPAPI based plugins. It does 31 // The PluginList is responsible for loading our NPAPI based plugins. It does
31 // so in whatever manner is appropriate for the platform. On Windows, it loads 32 // so in whatever manner is appropriate for the platform. On Windows, it loads
32 // plugins from a known directory by looking for DLLs which start with "NP", 33 // plugins from a known directory by looking for DLLs which start with "NP",
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // Need synchronization for the above members since this object can be 175 // Need synchronization for the above members since this object can be
175 // accessed on multiple threads. 176 // accessed on multiple threads.
176 base::Lock lock_; 177 base::Lock lock_;
177 178
178 DISALLOW_COPY_AND_ASSIGN(PluginList); 179 DISALLOW_COPY_AND_ASSIGN(PluginList);
179 }; 180 };
180 181
181 } // namespace content 182 } // namespace content
182 183
183 #endif // CONTENT_COMMON_PLUGIN_LIST_H_ 184 #endif // CONTENT_COMMON_PLUGIN_LIST_H_
OLDNEW
« no previous file with comments | « content/common/pepper_renderer_instance_data.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698