Chromium Code Reviews| 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 WEBKIT_PLUGINS_NPAPI_PLUGIN_LIST_H_ | 5 #ifndef WEBKIT_PLUGINS_NPAPI_PLUGIN_LIST_H_ |
| 6 #define WEBKIT_PLUGINS_NPAPI_PLUGIN_LIST_H_ | 6 #define WEBKIT_PLUGINS_NPAPI_PLUGIN_LIST_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 189 const std::vector<PluginGroup*>& GetHardcodedPluginGroups() const; | 189 const std::vector<PluginGroup*>& GetHardcodedPluginGroups() const; |
| 190 | 190 |
| 191 // Clears the internal list of PluginGroups and copies them from the vector. | 191 // Clears the internal list of PluginGroups and copies them from the vector. |
| 192 void SetPlugins(const std::vector<webkit::WebPluginInfo>& plugins); | 192 void SetPlugins(const std::vector<webkit::WebPluginInfo>& plugins); |
| 193 | 193 |
| 194 void set_will_load_plugins_callback(const base::Closure& callback); | 194 void set_will_load_plugins_callback(const base::Closure& callback); |
| 195 | 195 |
| 196 virtual ~PluginList(); | 196 virtual ~PluginList(); |
| 197 | 197 |
| 198 protected: | 198 protected: |
| 199 // TODO(ibraaaa): DELETE and add a different one. http://crbug.com/124396 | 199 // This constructor is used in unit tests to skip platform-dependent |
| 200 // initialization. | |
| 201 PluginList(int dummy); | |
|
Mattias Nissler (ping if slow)
2012/08/27 15:42:09
Just use the constructor below instead, passing NU
ibraaaa
2012/08/27 17:34:05
The Ctor below is going to be deleted anyways and
| |
| 202 | |
| 203 // TODO(ibraaaa): DELETE. http://crbug.com/124396 | |
| 200 // This constructor is used in unit tests to override the platform-dependent | 204 // This constructor is used in unit tests to override the platform-dependent |
| 201 // real-world plugin group definitions with custom ones. | 205 // real-world plugin group definitions with custom ones. |
| 202 PluginList(const PluginGroupDefinition* definitions, size_t num_definitions); | 206 PluginList(const PluginGroupDefinition* definitions, size_t num_definitions); |
| 203 | 207 |
| 204 // TODO(ibraaaa): DELETE. http://crbug.com/124396 | 208 // TODO(ibraaaa): DELETE. http://crbug.com/124396 |
| 205 // Adds the given WebPluginInfo to its corresponding group, creating it if | 209 // Adds the given WebPluginInfo to its corresponding group, creating it if |
| 206 // necessary, and returns the group. | 210 // necessary, and returns the group. |
| 207 PluginGroup* AddToPluginGroups(const webkit::WebPluginInfo& web_plugin_info, | 211 PluginGroup* AddToPluginGroups(const webkit::WebPluginInfo& web_plugin_info, |
| 208 ScopedVector<PluginGroup>* plugin_groups); | 212 ScopedVector<PluginGroup>* plugin_groups); |
| 209 | 213 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 343 // accessed on multiple threads. | 347 // accessed on multiple threads. |
| 344 base::Lock lock_; | 348 base::Lock lock_; |
| 345 | 349 |
| 346 DISALLOW_COPY_AND_ASSIGN(PluginList); | 350 DISALLOW_COPY_AND_ASSIGN(PluginList); |
| 347 }; | 351 }; |
| 348 | 352 |
| 349 } // namespace npapi | 353 } // namespace npapi |
| 350 } // namespace webkit | 354 } // namespace webkit |
| 351 | 355 |
| 352 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_LIST_H_ | 356 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_LIST_H_ |
| OLD | NEW |