| 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 #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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 virtual bool NPAPIPluginsSupported() = 0; | 145 virtual bool NPAPIPluginsSupported() = 0; |
| 146 | 146 |
| 147 // This is equivalent to specifying kDisablePluginsDiscovery, but is useful | 147 // This is equivalent to specifying kDisablePluginsDiscovery, but is useful |
| 148 // for unittests. | 148 // for unittests. |
| 149 virtual void DisablePluginsDiscoveryForTesting() = 0; | 149 virtual void DisablePluginsDiscoveryForTesting() = 0; |
| 150 | 150 |
| 151 #if defined(OS_MACOSX) | 151 #if defined(OS_MACOSX) |
| 152 // Called when the application is made active so that modal plugin windows can | 152 // Called when the application is made active so that modal plugin windows can |
| 153 // be made forward too. | 153 // be made forward too. |
| 154 virtual void AppActivated() = 0; | 154 virtual void AppActivated() = 0; |
| 155 #elif defined(OS_WIN) | |
| 156 // Returns the name and version of a plugin HWND. If the HWND isn't a valid | |
| 157 // plugin, returns false. | |
| 158 // This can be called from any thread. | |
| 159 virtual bool GetPluginInfoFromWindow(HWND window, | |
| 160 base::string16* plugin_name, | |
| 161 base::string16* plugin_version) = 0; | |
| 162 #endif | 155 #endif |
| 163 | 156 |
| 164 // Returns true iff PPAPI "dev channel" methods are supported. | 157 // Returns true iff PPAPI "dev channel" methods are supported. |
| 165 virtual bool PpapiDevChannelSupported(BrowserContext* browser_context, | 158 virtual bool PpapiDevChannelSupported(BrowserContext* browser_context, |
| 166 const GURL& document_url) = 0; | 159 const GURL& document_url) = 0; |
| 167 }; | 160 }; |
| 168 | 161 |
| 169 } // namespace content | 162 } // namespace content |
| 170 | 163 |
| 171 #endif // CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_ | 164 #endif // CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_ |
| OLD | NEW |