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 #include "webkit/plugins/npapi/mock_plugin_list.h" | 5 #include "webkit/plugins/npapi/mock_plugin_list.h" |
6 | 6 |
7 namespace webkit { | 7 namespace webkit { |
8 namespace npapi { | 8 namespace npapi { |
9 | 9 |
10 MockPluginList::MockPluginList(const PluginGroupDefinition* group_definitions, | 10 MockPluginList::MockPluginList(const PluginGroupDefinition* group_definitions, |
(...skipping 11 matching lines...) Expand all Loading... |
22 void MockPluginList::ClearPluginsToLoad() { | 22 void MockPluginList::ClearPluginsToLoad() { |
23 plugins_to_load_.clear(); | 23 plugins_to_load_.clear(); |
24 } | 24 } |
25 | 25 |
26 bool MockPluginList::GetPluginsNoRefresh( | 26 bool MockPluginList::GetPluginsNoRefresh( |
27 std::vector<webkit::WebPluginInfo>* plugins) { | 27 std::vector<webkit::WebPluginInfo>* plugins) { |
28 GetPlugins(plugins); | 28 GetPlugins(plugins); |
29 return true; | 29 return true; |
30 } | 30 } |
31 | 31 |
| 32 // TODO(ibraaaa): DELETE. http://crbug.com/124396 |
32 void MockPluginList::LoadPluginsInternal( | 33 void MockPluginList::LoadPluginsInternal( |
33 ScopedVector<PluginGroup>* plugin_groups) { | 34 ScopedVector<PluginGroup>* plugin_groups) { |
34 for (size_t i = 0; i < plugins_to_load_.size(); ++i) | 35 for (size_t i = 0; i < plugins_to_load_.size(); ++i) |
35 AddToPluginGroups(plugins_to_load_[i], plugin_groups); | 36 AddToPluginGroups(plugins_to_load_[i], plugin_groups); |
36 } | 37 } |
37 | 38 |
| 39 void MockPluginList::LoadPluginsIntoPluginListInternal( |
| 40 std::vector<webkit::WebPluginInfo>* plugins) { |
| 41 for (size_t i = 0; i < plugins_to_load_.size(); ++i) { |
| 42 plugins->push_back(plugins_to_load_[i]); |
| 43 } |
| 44 } |
| 45 |
38 } // npapi | 46 } // npapi |
39 } // webkit | 47 } // webkit |
OLD | NEW |