Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Side by Side Diff: webkit/plugins/npapi/mock_plugin_list.cc

Issue 10860044: 1st CL in a series to remove PluginGroup. Updates PluginList. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 1st CL in series to delete PluginGroup. Updates PluginList only. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webkit/plugins/npapi/mock_plugin_list.h ('k') | webkit/plugins/npapi/plugin_list.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « webkit/plugins/npapi/mock_plugin_list.h ('k') | webkit/plugins/npapi/plugin_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698