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

Side by Side Diff: content/public/browser/plugin_service.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/content_renderer.gypi ('k') | content/public/browser/render_process_host.h » ('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 #ifndef CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_
6 #define CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_ 6 #define CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 bool* is_stale, 86 bool* is_stale,
87 webkit::WebPluginInfo* info, 87 webkit::WebPluginInfo* info,
88 std::string* actual_mime_type) = 0; 88 std::string* actual_mime_type) = 0;
89 89
90 // Get plugin info by plugin path (including disabled plugins). Returns true 90 // Get plugin info by plugin path (including disabled plugins). Returns true
91 // if the plugin is found and WebPluginInfo has been filled in |info|. This 91 // if the plugin is found and WebPluginInfo has been filled in |info|. This
92 // will use cached data in the plugin list. 92 // will use cached data in the plugin list.
93 virtual bool GetPluginInfoByPath(const FilePath& plugin_path, 93 virtual bool GetPluginInfoByPath(const FilePath& plugin_path,
94 webkit::WebPluginInfo* info) = 0; 94 webkit::WebPluginInfo* info) = 0;
95 95
96 // Returns the display name for the plugin identified by the given path. If
97 // the path doesn't identify a plugin, or the plugin has no display name,
98 // this will attempt to generate a display name from the path.
99 virtual string16 GetPluginDisplayNameByPath(const FilePath& plugin_path) = 0;
100
96 // Asynchronously loads plugins if necessary and then calls back to the 101 // Asynchronously loads plugins if necessary and then calls back to the
97 // provided function on the calling MessageLoop on completion. 102 // provided function on the calling MessageLoop on completion.
98 virtual void GetPlugins(const GetPluginsCallback& callback) = 0; 103 virtual void GetPlugins(const GetPluginsCallback& callback) = 0;
99 104
100 // Asynchronously loads the list of plugin groups if necessary and then calls 105 // Asynchronously loads the list of plugin groups if necessary and then calls
101 // back to the provided function on the calling MessageLoop on completion. 106 // back to the provided function on the calling MessageLoop on completion.
102 virtual void GetPluginGroups(const GetPluginGroupsCallback& callback) = 0; 107 virtual void GetPluginGroups(const GetPluginGroupsCallback& callback) = 0;
103 108
104 // Returns information about a pepper plugin if it exists, otherwise NULL. 109 // Returns information about a pepper plugin if it exists, otherwise NULL.
105 // The caller does not own the pointer, and it's not guaranteed to live past 110 // The caller does not own the pointer, and it's not guaranteed to live past
(...skipping 28 matching lines...) Expand all
134 // TODO(dpranke): This should be private. 139 // TODO(dpranke): This should be private.
135 virtual webkit::npapi::PluginList* GetPluginList() = 0; 140 virtual webkit::npapi::PluginList* GetPluginList() = 0;
136 141
137 virtual void SetPluginListForTesting( 142 virtual void SetPluginListForTesting(
138 webkit::npapi::PluginList* plugin_list) = 0; 143 webkit::npapi::PluginList* plugin_list) = 0;
139 }; 144 };
140 145
141 } // namespace content 146 } // namespace content
142 147
143 #endif // CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_ 148 #endif // CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_
OLDNEW
« no previous file with comments | « content/content_renderer.gypi ('k') | content/public/browser/render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698