| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 #if defined(OS_MACOSX) | 108 #if defined(OS_MACOSX) |
| 109 virtual void AppActivated() OVERRIDE; | 109 virtual void AppActivated() OVERRIDE; |
| 110 #elif defined(OS_WIN) | 110 #elif defined(OS_WIN) |
| 111 virtual bool GetPluginInfoFromWindow(HWND window, | 111 virtual bool GetPluginInfoFromWindow(HWND window, |
| 112 base::string16* plugin_name, | 112 base::string16* plugin_name, |
| 113 base::string16* plugin_version) OVERRIDE; | 113 base::string16* plugin_version) OVERRIDE; |
| 114 | 114 |
| 115 // Returns true iff the given HWND is a plugin. | 115 // Returns true iff the given HWND is a plugin. |
| 116 bool IsPluginWindow(HWND window); | 116 bool IsPluginWindow(HWND window); |
| 117 #endif | 117 #endif |
| 118 virtual bool PpapiDevChannelSupported() OVERRIDE; | 118 virtual bool PpapiDevChannelSupported(BrowserContext* browser_context, |
| 119 const GURL& document_url) OVERRIDE; |
| 119 | 120 |
| 120 // Returns the plugin process host corresponding to the plugin process that | 121 // Returns the plugin process host corresponding to the plugin process that |
| 121 // has been started by this service. This will start a process to host the | 122 // has been started by this service. This will start a process to host the |
| 122 // 'plugin_path' if needed. If the process fails to start, the return value | 123 // 'plugin_path' if needed. If the process fails to start, the return value |
| 123 // is NULL. Must be called on the IO thread. | 124 // is NULL. Must be called on the IO thread. |
| 124 PluginProcessHost* FindOrStartNpapiPluginProcess( | 125 PluginProcessHost* FindOrStartNpapiPluginProcess( |
| 125 int render_process_id, const base::FilePath& plugin_path); | 126 int render_process_id, const base::FilePath& plugin_path); |
| 126 PpapiPluginProcessHost* FindOrStartPpapiPluginProcess( | 127 PpapiPluginProcessHost* FindOrStartPpapiPluginProcess( |
| 127 int render_process_id, | 128 int render_process_id, |
| 128 const base::FilePath& plugin_path, | 129 const base::FilePath& plugin_path, |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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<base::FilePath, std::vector<base::Time> > crash_times_; | 248 std::map<base::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 } // namespace content | 253 } // namespace content |
| 253 | 254 |
| 254 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ | 255 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ |
| OLD | NEW |