| Index: webkit/plugins/npapi/stub_plugin_list.cc
|
| diff --git a/webkit/plugins/npapi/stub_plugin_list.cc b/webkit/plugins/npapi/stub_plugin_list.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..772b71b26092d72f47f26a201b2dba463facd3ee
|
| --- /dev/null
|
| +++ b/webkit/plugins/npapi/stub_plugin_list.cc
|
| @@ -0,0 +1,33 @@
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "webkit/plugins/npapi/stub_plugin_list.h"
|
| +
|
| +namespace webkit {
|
| +namespace npapi {
|
| +
|
| +StubPluginList::StubPluginList(const PluginGroupDefinition* group_definitions,
|
| + size_t num_group_definitions) :
|
| + PluginList(group_definitions, num_group_definitions) {
|
| +}
|
| +
|
| +StubPluginList::~StubPluginList() {
|
| +}
|
| +
|
| +void StubPluginList::AddPluginToLoad(const WebPluginInfo& plugin) {
|
| + plugins_to_load_.push_back(plugin);
|
| +}
|
| +
|
| +void StubPluginList::ClearPluginsToLoad() {
|
| + plugins_to_load_.clear();
|
| +}
|
| +
|
| +void StubPluginList::LoadPluginsInternal(
|
| + ScopedVector<PluginGroup>* plugin_groups) {
|
| + for (size_t i = 0; i < plugins_to_load_.size(); ++i)
|
| + AddToPluginGroups(plugins_to_load_[i], plugin_groups);
|
| +}
|
| +
|
| +} // npapi
|
| +} // webkit
|
|
|