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

Side by Side Diff: content/browser/plugin_service_impl.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
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 // This class responds to requests from renderers for the list of plugins, and 5 // This class responds to requests from renderers for the list of plugins, and
6 // also a proxy object for plugin instances. 6 // also a proxy object for plugin instances.
7 7
8 #ifndef CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ 8 #ifndef CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_
9 #define CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ 9 #define CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_
10 10
11 #if !defined(ENABLE_PLUGINS) 11 #include "ppapi/features/features.h"
12
13 #if !BUILDFLAG(ENABLE_PLUGINS)
12 #error "Plugins should be enabled" 14 #error "Plugins should be enabled"
13 #endif 15 #endif
14 16
15 #include <map> 17 #include <map>
16 #include <memory> 18 #include <memory>
17 #include <set> 19 #include <set>
18 #include <vector> 20 #include <vector>
19 21
20 #include "base/compiler_specific.h" 22 #include "base/compiler_specific.h"
21 #include "base/macros.h" 23 #include "base/macros.h"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 160
159 // Used to detect if a given plugin is crashing over and over. 161 // Used to detect if a given plugin is crashing over and over.
160 std::map<base::FilePath, std::vector<base::Time> > crash_times_; 162 std::map<base::FilePath, std::vector<base::Time> > crash_times_;
161 163
162 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl); 164 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl);
163 }; 165 };
164 166
165 } // namespace content 167 } // namespace content
166 168
167 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ 169 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/plugin_private_storage_helper.h ('k') | content/browser/renderer_host/pepper/browser_ppapi_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698