Index: content/browser/plugin_process_host.h |
diff --git a/content/browser/plugin_process_host.h b/content/browser/plugin_process_host.h |
index 1006eb1cf1faa1a89636512909c4fc3c5464980f..53de326993f874f5557d8d20e6e29ac10d19ead5 100644 |
--- a/content/browser/plugin_process_host.h |
+++ b/content/browser/plugin_process_host.h |
@@ -120,6 +120,11 @@ class CONTENT_EXPORT PluginProcessHost : public BrowserChildProcessHostDelegate, |
void AddWindow(HWND window); |
#endif |
+ // Given a pid of a plugin process, returns the plugin information in |info| |
+ // if we know about that process. Otherwise returns false. |
+ // This method can be called on any thread. |
+ static bool GetWebPluginInfoFromPluginPid(int pid, WebPluginInfo* info); |
+ |
private: |
// Sends a message to the plugin process to request creation of a new channel |
// for the given mime type. |
@@ -161,6 +166,9 @@ class CONTENT_EXPORT PluginProcessHost : public BrowserChildProcessHostDelegate, |
// Information about the plugin. |
WebPluginInfo info_; |
+ // The pid of the plugin process. |
+ int pid_; |
+ |
#if defined(OS_WIN) |
// Tracks plugin parent windows created on the UI thread. |
std::set<HWND> plugin_parent_windows_set_; |