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 // 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_H_ | 8 #ifndef CONTENT_BROWSER_PLUGIN_SERVICE_H_ |
9 #define CONTENT_BROWSER_PLUGIN_SERVICE_H_ | 9 #define CONTENT_BROWSER_PLUGIN_SERVICE_H_ |
10 #pragma once | 10 #pragma once |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 // accidentally load plugins in the wrong process or thread. Refer to | 182 // accidentally load plugins in the wrong process or thread. Refer to |
183 // PluginList for further documentation of these functions. | 183 // PluginList for further documentation of these functions. |
184 void RefreshPlugins(); | 184 void RefreshPlugins(); |
185 void AddExtraPluginPath(const FilePath& path); | 185 void AddExtraPluginPath(const FilePath& path); |
186 void RemoveExtraPluginPath(const FilePath& path); | 186 void RemoveExtraPluginPath(const FilePath& path); |
187 void UnregisterInternalPlugin(const FilePath& path); | 187 void UnregisterInternalPlugin(const FilePath& path); |
188 void RegisterInternalPlugin(const webkit::WebPluginInfo& info); | 188 void RegisterInternalPlugin(const webkit::WebPluginInfo& info); |
189 string16 GetPluginGroupName(const std::string& plugin_name); | 189 string16 GetPluginGroupName(const std::string& plugin_name); |
190 | 190 |
191 // TODO(dpranke): This should be private. | 191 // TODO(dpranke): This should be private. |
192 webkit::npapi::PluginList* plugin_list(); | 192 webkit::npapi::PluginList* plugin_list() { return plugin_list_; } |
193 | 193 |
194 void SetPluginListForTesting(webkit::npapi::PluginList* plugin_list); | 194 void SetPluginListForTesting(webkit::npapi::PluginList* plugin_list); |
195 | 195 |
196 private: | 196 private: |
197 friend struct DefaultSingletonTraits<PluginService>; | 197 friend struct DefaultSingletonTraits<PluginService>; |
198 | 198 |
199 // Creates the PluginService object, but doesn't actually build the plugin | 199 // Creates the PluginService object, but doesn't actually build the plugin |
200 // list yet. It's generated lazily. | 200 // list yet. It's generated lazily. |
201 PluginService(); | 201 PluginService(); |
202 virtual ~PluginService(); | 202 virtual ~PluginService(); |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 #if defined(OS_POSIX) | 282 #if defined(OS_POSIX) |
283 scoped_refptr<PluginLoaderPosix> plugin_loader_; | 283 scoped_refptr<PluginLoaderPosix> plugin_loader_; |
284 #endif | 284 #endif |
285 | 285 |
286 DISALLOW_COPY_AND_ASSIGN(PluginService); | 286 DISALLOW_COPY_AND_ASSIGN(PluginService); |
287 }; | 287 }; |
288 | 288 |
289 DISABLE_RUNNABLE_METHOD_REFCOUNT(PluginService); | 289 DISABLE_RUNNABLE_METHOD_REFCOUNT(PluginService); |
290 | 290 |
291 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_H_ | 291 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_H_ |
OLD | NEW |