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 |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 const base::FilePath& profile_data_directory); | 172 const base::FilePath& profile_data_directory); |
173 PpapiPluginProcessHost* FindPpapiBrokerProcess( | 173 PpapiPluginProcessHost* FindPpapiBrokerProcess( |
174 const base::FilePath& broker_path); | 174 const base::FilePath& broker_path); |
175 | 175 |
176 void RegisterPepperPlugins(); | 176 void RegisterPepperPlugins(); |
177 | 177 |
178 // Run on the blocking pool to load the plugins synchronously. | 178 // Run on the blocking pool to load the plugins synchronously. |
179 void GetPluginsInternal(base::MessageLoopProxy* target_loop, | 179 void GetPluginsInternal(base::MessageLoopProxy* target_loop, |
180 const GetPluginsCallback& callback); | 180 const GetPluginsCallback& callback); |
181 | 181 |
| 182 #if defined(OS_POSIX) |
| 183 void GetPluginsOnIOThread( |
| 184 base::MessageLoopProxy* target_loop, |
| 185 const GetPluginsCallback& callback); |
| 186 #endif |
| 187 |
182 // Binding directly to GetAllowedPluginForOpenChannelToPlugin() isn't possible | 188 // Binding directly to GetAllowedPluginForOpenChannelToPlugin() isn't possible |
183 // because more arity is needed <http://crbug.com/98542>. This just forwards. | 189 // because more arity is needed <http://crbug.com/98542>. This just forwards. |
184 void ForwardGetAllowedPluginForOpenChannelToPlugin( | 190 void ForwardGetAllowedPluginForOpenChannelToPlugin( |
185 const PluginServiceFilterParams& params, | 191 const PluginServiceFilterParams& params, |
186 const GURL& url, | 192 const GURL& url, |
187 const std::string& mime_type, | 193 const std::string& mime_type, |
188 PluginProcessHost::Client* client, | 194 PluginProcessHost::Client* client, |
189 const std::vector<WebPluginInfo>&); | 195 const std::vector<WebPluginInfo>&); |
190 // Helper so we can do the plugin lookup on the FILE thread. | 196 // Helper so we can do the plugin lookup on the FILE thread. |
191 void GetAllowedPluginForOpenChannelToPlugin( | 197 void GetAllowedPluginForOpenChannelToPlugin( |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 | 245 |
240 // Used to detect if a given plug-in is crashing over and over. | 246 // Used to detect if a given plug-in is crashing over and over. |
241 std::map<base::FilePath, std::vector<base::Time> > crash_times_; | 247 std::map<base::FilePath, std::vector<base::Time> > crash_times_; |
242 | 248 |
243 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl); | 249 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl); |
244 }; | 250 }; |
245 | 251 |
246 } // namespace content | 252 } // namespace content |
247 | 253 |
248 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ | 254 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ |
OLD | NEW |