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_COMMON_PLUGIN_LIST_H_ | 5 #ifndef CONTENT_COMMON_PLUGIN_LIST_H_ |
6 #define CONTENT_COMMON_PLUGIN_LIST_H_ | 6 #define CONTENT_COMMON_PLUGIN_LIST_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
132 std::vector<WebPluginInfo>* plugins, | 132 std::vector<WebPluginInfo>* plugins, |
133 WebPluginInfo* plugin_info); | 133 WebPluginInfo* plugin_info); |
134 | 134 |
135 // The following functions are used to support probing for WebPluginInfo | 135 // The following functions are used to support probing for WebPluginInfo |
136 // using a different instance of this class. | 136 // using a different instance of this class. |
137 | 137 |
138 // Computes a list of all plugins to potentially load from all sources. | 138 // Computes a list of all plugins to potentially load from all sources. |
139 void GetPluginPathsToLoad(std::vector<base::FilePath>* plugin_paths, | 139 void GetPluginPathsToLoad(std::vector<base::FilePath>* plugin_paths, |
140 bool include_npapi); | 140 bool include_npapi); |
141 | 141 |
142 // Signals that plugin loading will start. This method should be called before | |
143 // loading plugins with a different instance of this class. Returns false if | |
Robert Sesek
2014/01/21 15:17:22
This is a singleton, how would you use a different
Bernhard Bauer
2014/01/21 15:48:25
In a different process? I copied the term from lin
Robert Sesek
2014/01/21 20:58:18
That's not immediately clear, but it makes sense.
| |
144 // the plugin list is up to date. | |
145 // When loading has finished, SetPlugins() should be called with the list of | |
146 // plugins. | |
147 bool PrepareForPluginLoading(); | |
148 | |
142 // Clears the internal list of Plugins and copies them from the vector. | 149 // Clears the internal list of Plugins and copies them from the vector. |
143 void SetPlugins(const std::vector<WebPluginInfo>& plugins); | 150 void SetPlugins(const std::vector<WebPluginInfo>& plugins); |
144 | 151 |
145 void set_will_load_plugins_callback(const base::Closure& callback); | 152 void set_will_load_plugins_callback(const base::Closure& callback); |
146 | 153 |
147 virtual ~PluginList(); | 154 virtual ~PluginList(); |
148 | 155 |
149 // Creates a WebPluginInfo structure given a plugin's path. On success | 156 // Creates a WebPluginInfo structure given a plugin's path. On success |
150 // returns true, with the information being put into "info". | 157 // returns true, with the information being put into "info". |
151 // Returns false if the library couldn't be found, or if it's not a plugin. | 158 // Returns false if the library couldn't be found, or if it's not a plugin. |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
243 // Flag indicating whether third_party plugins will be searched for | 250 // Flag indicating whether third_party plugins will be searched for |
244 // in common places. | 251 // in common places. |
245 bool plugins_discovery_disabled_; | 252 bool plugins_discovery_disabled_; |
246 | 253 |
247 DISALLOW_COPY_AND_ASSIGN(PluginList); | 254 DISALLOW_COPY_AND_ASSIGN(PluginList); |
248 }; | 255 }; |
249 | 256 |
250 } // namespace content | 257 } // namespace content |
251 | 258 |
252 #endif // CONTENT_COMMON_PLUGIN_LIST_H_ | 259 #endif // CONTENT_COMMON_PLUGIN_LIST_H_ |
OLD | NEW |