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

Side by Side Diff: content/browser/plugin_service_impl.h

Issue 128773002: Restart plugin loading only if the plugin list has actually become stale. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: x Created 6 years, 11 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 | Annotate | Revision Log
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
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 const base::FilePath& profile_data_directory); 178 const base::FilePath& profile_data_directory);
179 PpapiPluginProcessHost* FindPpapiBrokerProcess( 179 PpapiPluginProcessHost* FindPpapiBrokerProcess(
180 const base::FilePath& broker_path); 180 const base::FilePath& broker_path);
181 181
182 void RegisterPepperPlugins(); 182 void RegisterPepperPlugins();
183 183
184 // Run on the blocking pool to load the plugins synchronously. 184 // Run on the blocking pool to load the plugins synchronously.
185 void GetPluginsInternal(base::MessageLoopProxy* target_loop, 185 void GetPluginsInternal(base::MessageLoopProxy* target_loop,
186 const GetPluginsCallback& callback); 186 const GetPluginsCallback& callback);
187 187
188 #if defined(OS_POSIX)
189 void GetPluginsOnIOThread(
190 base::MessageLoopProxy* target_loop,
191 const GetPluginsCallback& callback);
192 #endif
193
188 // Binding directly to GetAllowedPluginForOpenChannelToPlugin() isn't possible 194 // Binding directly to GetAllowedPluginForOpenChannelToPlugin() isn't possible
189 // because more arity is needed <http://crbug.com/98542>. This just forwards. 195 // because more arity is needed <http://crbug.com/98542>. This just forwards.
190 void ForwardGetAllowedPluginForOpenChannelToPlugin( 196 void ForwardGetAllowedPluginForOpenChannelToPlugin(
191 const PluginServiceFilterParams& params, 197 const PluginServiceFilterParams& params,
192 const GURL& url, 198 const GURL& url,
193 const std::string& mime_type, 199 const std::string& mime_type,
194 PluginProcessHost::Client* client, 200 PluginProcessHost::Client* client,
195 const std::vector<WebPluginInfo>&); 201 const std::vector<WebPluginInfo>&);
196 // Helper so we can do the plugin lookup on the FILE thread. 202 // Helper so we can do the plugin lookup on the FILE thread.
197 void GetAllowedPluginForOpenChannelToPlugin( 203 void GetAllowedPluginForOpenChannelToPlugin(
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 251
246 // Used to detect if a given plug-in is crashing over and over. 252 // Used to detect if a given plug-in is crashing over and over.
247 std::map<base::FilePath, std::vector<base::Time> > crash_times_; 253 std::map<base::FilePath, std::vector<base::Time> > crash_times_;
248 254
249 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl); 255 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl);
250 }; 256 };
251 257
252 } // namespace content 258 } // namespace content
253 259
254 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ 260 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698