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 // 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 #include "ppapi/features/features.h" | 11 #include "ppapi/features/features.h" |
12 | 12 |
13 #if !BUILDFLAG(ENABLE_PLUGINS) | 13 #if !BUILDFLAG(ENABLE_PLUGINS) |
14 #error "Plugins should be enabled" | 14 #error "Plugins should be enabled" |
15 #endif | 15 #endif |
16 | 16 |
17 #include <map> | 17 #include <map> |
18 #include <memory> | 18 #include <memory> |
19 #include <set> | 19 #include <set> |
20 #include <vector> | 20 #include <vector> |
21 | 21 |
22 #include "base/compiler_specific.h" | 22 #include "base/compiler_specific.h" |
23 #include "base/macros.h" | 23 #include "base/macros.h" |
24 #include "base/memory/ref_counted.h" | 24 #include "base/memory/ref_counted.h" |
25 #include "base/memory/scoped_vector.h" | |
26 #include "base/memory/singleton.h" | 25 #include "base/memory/singleton.h" |
27 #include "base/sequence_checker.h" | 26 #include "base/sequence_checker.h" |
28 #include "base/sequenced_task_runner.h" | 27 #include "base/sequenced_task_runner.h" |
29 #include "base/synchronization/waitable_event_watcher.h" | 28 #include "base/synchronization/waitable_event_watcher.h" |
30 #include "base/time/time.h" | 29 #include "base/time/time.h" |
31 #include "build/build_config.h" | 30 #include "build/build_config.h" |
32 #include "content/browser/ppapi_plugin_process_host.h" | 31 #include "content/browser/ppapi_plugin_process_host.h" |
33 #include "content/common/content_export.h" | 32 #include "content/common/content_export.h" |
34 #include "content/public/browser/plugin_service.h" | 33 #include "content/public/browser/plugin_service.h" |
35 #include "content/public/common/pepper_plugin_info.h" | 34 #include "content/public/common/pepper_plugin_info.h" |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 159 |
161 // Used to detect if a given plugin is crashing over and over. | 160 // Used to detect if a given plugin is crashing over and over. |
162 std::map<base::FilePath, std::vector<base::Time> > crash_times_; | 161 std::map<base::FilePath, std::vector<base::Time> > crash_times_; |
163 | 162 |
164 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl); | 163 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl); |
165 }; | 164 }; |
166 | 165 |
167 } // namespace content | 166 } // namespace content |
168 | 167 |
169 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ | 168 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ |
OLD | NEW |