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

Side by Side Diff: content/browser/plugin_service_impl.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
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)
12 #error "Plugins should be enabled"
13 #endif
14
11 #include <map> 15 #include <map>
12 #include <set> 16 #include <set>
13 #include <vector> 17 #include <vector>
14 18
15 #include "base/basictypes.h" 19 #include "base/basictypes.h"
16 #include "base/compiler_specific.h" 20 #include "base/compiler_specific.h"
17 #include "base/memory/scoped_vector.h" 21 #include "base/memory/scoped_vector.h"
18 #include "base/memory/singleton.h" 22 #include "base/memory/singleton.h"
19 #include "base/synchronization/waitable_event_watcher.h" 23 #include "base/synchronization/waitable_event_watcher.h"
20 #include "base/threading/sequenced_worker_pool.h" 24 #include "base/threading/sequenced_worker_pool.h"
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 250
247 // Used to detect if a given plug-in is crashing over and over. 251 // Used to detect if a given plug-in is crashing over and over.
248 std::map<base::FilePath, std::vector<base::Time> > crash_times_; 252 std::map<base::FilePath, std::vector<base::Time> > crash_times_;
249 253
250 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl); 254 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl);
251 }; 255 };
252 256
253 } // namespace content 257 } // namespace content
254 258
255 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ 259 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698