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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 #if defined(OS_MACOSX) | 114 #if defined(OS_MACOSX) |
115 virtual void AppActivated() OVERRIDE; | 115 virtual void AppActivated() OVERRIDE; |
116 #elif defined(OS_WIN) | 116 #elif defined(OS_WIN) |
117 virtual bool GetPluginInfoFromWindow(HWND window, | 117 virtual bool GetPluginInfoFromWindow(HWND window, |
118 base::string16* plugin_name, | 118 base::string16* plugin_name, |
119 base::string16* plugin_version) OVERRIDE; | 119 base::string16* plugin_version) OVERRIDE; |
120 | 120 |
121 // Returns true iff the given HWND is a plugin. | 121 // Returns true iff the given HWND is a plugin. |
122 bool IsPluginWindow(HWND window); | 122 bool IsPluginWindow(HWND window); |
123 #endif | 123 #endif |
| 124 virtual bool PpapiDevChannelSupported() OVERRIDE; |
124 | 125 |
125 // Returns the plugin process host corresponding to the plugin process that | 126 // Returns the plugin process host corresponding to the plugin process that |
126 // has been started by this service. This will start a process to host the | 127 // has been started by this service. This will start a process to host the |
127 // 'plugin_path' if needed. If the process fails to start, the return value | 128 // 'plugin_path' if needed. If the process fails to start, the return value |
128 // is NULL. Must be called on the IO thread. | 129 // is NULL. Must be called on the IO thread. |
129 PluginProcessHost* FindOrStartNpapiPluginProcess( | 130 PluginProcessHost* FindOrStartNpapiPluginProcess( |
130 int render_process_id, const base::FilePath& plugin_path); | 131 int render_process_id, const base::FilePath& plugin_path); |
131 PpapiPluginProcessHost* FindOrStartPpapiPluginProcess( | 132 PpapiPluginProcessHost* FindOrStartPpapiPluginProcess( |
132 int render_process_id, | 133 int render_process_id, |
133 const base::FilePath& plugin_path, | 134 const base::FilePath& plugin_path, |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 | 245 |
245 // Used to detect if a given plug-in is crashing over and over. | 246 // Used to detect if a given plug-in is crashing over and over. |
246 std::map<base::FilePath, std::vector<base::Time> > crash_times_; | 247 std::map<base::FilePath, std::vector<base::Time> > crash_times_; |
247 | 248 |
248 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl); | 249 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl); |
249 }; | 250 }; |
250 | 251 |
251 } // namespace content | 252 } // namespace content |
252 | 253 |
253 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ | 254 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ |
OLD | NEW |