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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 virtual void RefreshPlugins() = 0; | 126 virtual void RefreshPlugins() = 0; |
127 virtual void AddExtraPluginPath(const base::FilePath& path) = 0; | 127 virtual void AddExtraPluginPath(const base::FilePath& path) = 0; |
128 virtual void AddExtraPluginDir(const base::FilePath& path) = 0; | 128 virtual void AddExtraPluginDir(const base::FilePath& path) = 0; |
129 virtual void RemoveExtraPluginPath(const base::FilePath& path) = 0; | 129 virtual void RemoveExtraPluginPath(const base::FilePath& path) = 0; |
130 virtual void UnregisterInternalPlugin(const base::FilePath& path) = 0; | 130 virtual void UnregisterInternalPlugin(const base::FilePath& path) = 0; |
131 virtual void RegisterInternalPlugin(const webkit::WebPluginInfo& info, | 131 virtual void RegisterInternalPlugin(const webkit::WebPluginInfo& info, |
132 bool add_at_beginning) = 0; | 132 bool add_at_beginning) = 0; |
133 virtual void GetInternalPlugins( | 133 virtual void GetInternalPlugins( |
134 std::vector<webkit::WebPluginInfo>* plugins) = 0; | 134 std::vector<webkit::WebPluginInfo>* plugins) = 0; |
135 | 135 |
136 // TODO(dpranke): This should be private. | |
137 virtual webkit::npapi::PluginList* GetPluginList() = 0; | |
138 | |
139 virtual void SetPluginListForTesting( | 136 virtual void SetPluginListForTesting( |
140 webkit::npapi::PluginList* plugin_list) = 0; | 137 webkit::npapi::PluginList* plugin_list) = 0; |
141 | 138 |
142 #if defined(OS_MACOSX) | 139 #if defined(OS_MACOSX) |
143 // Called when the application is made active so that modal plugin windows can | 140 // Called when the application is made active so that modal plugin windows can |
144 // be made forward too. | 141 // be made forward too. |
145 virtual void AppActivated() = 0; | 142 virtual void AppActivated() = 0; |
146 #endif | 143 #endif |
147 }; | 144 }; |
148 | 145 |
149 } // namespace content | 146 } // namespace content |
150 | 147 |
151 #endif // CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_ | 148 #endif // CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_ |
OLD | NEW |