| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 bool IsPluginUnstable(const base::FilePath& plugin_path) override; | 99 bool IsPluginUnstable(const base::FilePath& plugin_path) override; |
| 100 void RefreshPlugins() override; | 100 void RefreshPlugins() override; |
| 101 void AddExtraPluginPath(const base::FilePath& path) override; | 101 void AddExtraPluginPath(const base::FilePath& path) override; |
| 102 void RemoveExtraPluginPath(const base::FilePath& path) override; | 102 void RemoveExtraPluginPath(const base::FilePath& path) override; |
| 103 void AddExtraPluginDir(const base::FilePath& path) override; | 103 void AddExtraPluginDir(const base::FilePath& path) override; |
| 104 void RegisterInternalPlugin(const WebPluginInfo& info, | 104 void RegisterInternalPlugin(const WebPluginInfo& info, |
| 105 bool add_at_beginning) override; | 105 bool add_at_beginning) override; |
| 106 void UnregisterInternalPlugin(const base::FilePath& path) override; | 106 void UnregisterInternalPlugin(const base::FilePath& path) override; |
| 107 void GetInternalPlugins(std::vector<WebPluginInfo>* plugins) override; | 107 void GetInternalPlugins(std::vector<WebPluginInfo>* plugins) override; |
| 108 bool NPAPIPluginsSupported() override; | 108 bool NPAPIPluginsSupported() override; |
| 109 void EnableNpapiPlugins() override; | |
| 110 void DisablePluginsDiscoveryForTesting() override; | 109 void DisablePluginsDiscoveryForTesting() override; |
| 111 #if defined(OS_MACOSX) | 110 #if defined(OS_MACOSX) |
| 112 void AppActivated() override; | 111 void AppActivated() override; |
| 113 #elif defined(OS_WIN) | 112 #elif defined(OS_WIN) |
| 114 bool GetPluginInfoFromWindow(HWND window, | 113 bool GetPluginInfoFromWindow(HWND window, |
| 115 base::string16* plugin_name, | 114 base::string16* plugin_name, |
| 116 base::string16* plugin_version) override; | 115 base::string16* plugin_version) override; |
| 117 | 116 |
| 118 // Returns true iff the given HWND is a plugin. | 117 // Returns true iff the given HWND is a plugin. |
| 119 bool IsPluginWindow(HWND window); | 118 bool IsPluginWindow(HWND window); |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 | 248 |
| 250 // Used to detect if a given plugin is crashing over and over. | 249 // Used to detect if a given plugin is crashing over and over. |
| 251 std::map<base::FilePath, std::vector<base::Time> > crash_times_; | 250 std::map<base::FilePath, std::vector<base::Time> > crash_times_; |
| 252 | 251 |
| 253 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl); | 252 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl); |
| 254 }; | 253 }; |
| 255 | 254 |
| 256 } // namespace content | 255 } // namespace content |
| 257 | 256 |
| 258 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ | 257 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ |
| OLD | NEW |