| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 // single global list in the component build and so that we don't | 119 // single global list in the component build and so that we don't |
| 120 // accidentally load plugins in the wrong process or thread. Refer to | 120 // accidentally load plugins in the wrong process or thread. Refer to |
| 121 // PluginList for further documentation of these functions. | 121 // PluginList for further documentation of these functions. |
| 122 virtual void RefreshPlugins() = 0; | 122 virtual void RefreshPlugins() = 0; |
| 123 virtual void AddExtraPluginPath(const FilePath& path) = 0; | 123 virtual void AddExtraPluginPath(const FilePath& path) = 0; |
| 124 virtual void AddExtraPluginDir(const FilePath& path) = 0; | 124 virtual void AddExtraPluginDir(const FilePath& path) = 0; |
| 125 virtual void RemoveExtraPluginPath(const FilePath& path) = 0; | 125 virtual void RemoveExtraPluginPath(const FilePath& path) = 0; |
| 126 virtual void UnregisterInternalPlugin(const FilePath& path) = 0; | 126 virtual void UnregisterInternalPlugin(const FilePath& path) = 0; |
| 127 virtual void RegisterInternalPlugin(const webkit::WebPluginInfo& info, | 127 virtual void RegisterInternalPlugin(const webkit::WebPluginInfo& info, |
| 128 bool add_at_beginning) = 0; | 128 bool add_at_beginning) = 0; |
| 129 virtual void GetInternalPlugins( |
| 130 std::vector<webkit::WebPluginInfo>* plugins) = 0; |
| 129 | 131 |
| 130 // TODO(dpranke): This should be private. | 132 // TODO(dpranke): This should be private. |
| 131 virtual webkit::npapi::PluginList* GetPluginList() = 0; | 133 virtual webkit::npapi::PluginList* GetPluginList() = 0; |
| 132 | 134 |
| 133 virtual void SetPluginListForTesting( | 135 virtual void SetPluginListForTesting( |
| 134 webkit::npapi::PluginList* plugin_list) = 0; | 136 webkit::npapi::PluginList* plugin_list) = 0; |
| 135 | 137 |
| 136 #if defined(OS_MACOSX) | 138 #if defined(OS_MACOSX) |
| 137 // Called when the application is made active so that modal plugin windows can | 139 // Called when the application is made active so that modal plugin windows can |
| 138 // be made forward too. | 140 // be made forward too. |
| 139 virtual void AppActivated() = 0; | 141 virtual void AppActivated() = 0; |
| 140 #endif | 142 #endif |
| 141 }; | 143 }; |
| 142 | 144 |
| 143 } // namespace content | 145 } // namespace content |
| 144 | 146 |
| 145 #endif // CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_ | 147 #endif // CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_ |
| OLD | NEW |