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

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

Issue 10014013: Add a hang monitor for Pepper plugins (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
« no previous file with comments | « content/browser/plugin_data_remover_impl.cc ('k') | content/browser/plugin_service_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #pragma once 10 #pragma once
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 content::ResourceContext* context, 90 content::ResourceContext* context,
91 const GURL& url, 91 const GURL& url,
92 const GURL& page_url, 92 const GURL& page_url,
93 const std::string& mime_type, 93 const std::string& mime_type,
94 bool allow_wildcard, 94 bool allow_wildcard,
95 bool* is_stale, 95 bool* is_stale,
96 webkit::WebPluginInfo* info, 96 webkit::WebPluginInfo* info,
97 std::string* actual_mime_type) OVERRIDE; 97 std::string* actual_mime_type) OVERRIDE;
98 virtual bool GetPluginInfoByPath(const FilePath& plugin_path, 98 virtual bool GetPluginInfoByPath(const FilePath& plugin_path,
99 webkit::WebPluginInfo* info) OVERRIDE; 99 webkit::WebPluginInfo* info) OVERRIDE;
100 virtual string16 GetPluginDisplayNameByPath(const FilePath& path) OVERRIDE;
100 virtual void GetPlugins(const GetPluginsCallback& callback) OVERRIDE; 101 virtual void GetPlugins(const GetPluginsCallback& callback) OVERRIDE;
101 virtual void GetPluginGroups( 102 virtual void GetPluginGroups(
102 const GetPluginGroupsCallback& callback) OVERRIDE; 103 const GetPluginGroupsCallback& callback) OVERRIDE;
103 virtual content::PepperPluginInfo* GetRegisteredPpapiPluginInfo( 104 virtual content::PepperPluginInfo* GetRegisteredPpapiPluginInfo(
104 const FilePath& plugin_path) OVERRIDE; 105 const FilePath& plugin_path) OVERRIDE;
105 virtual void SetFilter(content::PluginServiceFilter* filter) OVERRIDE; 106 virtual void SetFilter(content::PluginServiceFilter* filter) OVERRIDE;
106 virtual content::PluginServiceFilter* GetFilter() OVERRIDE; 107 virtual content::PluginServiceFilter* GetFilter() OVERRIDE;
107 virtual void ForcePluginShutdown(const FilePath& plugin_path) OVERRIDE; 108 virtual void ForcePluginShutdown(const FilePath& plugin_path) OVERRIDE;
108 virtual bool IsPluginUnstable(const FilePath& plugin_path) OVERRIDE; 109 virtual bool IsPluginUnstable(const FilePath& plugin_path) OVERRIDE;
109 virtual void RefreshPlugins() OVERRIDE; 110 virtual void RefreshPlugins() OVERRIDE;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 scoped_refptr<PluginLoaderPosix> plugin_loader_; 244 scoped_refptr<PluginLoaderPosix> plugin_loader_;
244 #endif 245 #endif
245 246
246 // Used to detect if a given plug-in is crashing over and over. 247 // Used to detect if a given plug-in is crashing over and over.
247 std::map<FilePath, std::vector<base::Time> > crash_times_; 248 std::map<FilePath, std::vector<base::Time> > crash_times_;
248 249
249 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl); 250 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl);
250 }; 251 };
251 252
252 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ 253 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/plugin_data_remover_impl.cc ('k') | content/browser/plugin_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698