OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 // PluginList for further documentation of these functions. | 123 // PluginList for further documentation of these functions. |
124 virtual void RefreshPlugins() = 0; | 124 virtual void RefreshPlugins() = 0; |
125 virtual void AddExtraPluginPath(const FilePath& path) = 0; | 125 virtual void AddExtraPluginPath(const FilePath& path) = 0; |
126 virtual void RemoveExtraPluginPath(const FilePath& path) = 0; | 126 virtual void RemoveExtraPluginPath(const FilePath& path) = 0; |
127 virtual void UnregisterInternalPlugin(const FilePath& path) = 0; | 127 virtual void UnregisterInternalPlugin(const FilePath& path) = 0; |
128 virtual void RegisterInternalPlugin(const webkit::WebPluginInfo& info) = 0; | 128 virtual void RegisterInternalPlugin(const webkit::WebPluginInfo& info) = 0; |
129 virtual string16 GetPluginGroupName(const std::string& plugin_name) = 0; | 129 virtual string16 GetPluginGroupName(const std::string& plugin_name) = 0; |
130 | 130 |
131 // TODO(dpranke): This should be private. | 131 // TODO(dpranke): This should be private. |
132 virtual webkit::npapi::PluginList* GetPluginList() = 0; | 132 virtual webkit::npapi::PluginList* GetPluginList() = 0; |
| 133 |
| 134 virtual void SetPluginListForTesting( |
| 135 webkit::npapi::PluginList* plugin_list) = 0; |
133 }; | 136 }; |
134 | 137 |
135 } // namespace content | 138 } // namespace content |
136 | 139 |
137 #endif // CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_ | 140 #endif // CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_ |
OLD | NEW |