| Index: webkit/plugins/npapi/plugin_group.cc
|
| ===================================================================
|
| --- webkit/plugins/npapi/plugin_group.cc (revision 0)
|
| +++ webkit/plugins/npapi/plugin_group.cc (working copy)
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "webkit/glue/plugins/plugin_group.h"
|
| +#include "webkit/plugins/npapi/plugin_group.h"
|
|
|
| #include "base/linked_ptr.h"
|
| #include "base/string_util.h"
|
| @@ -10,9 +10,12 @@
|
| #include "base/utf_string_conversions.h"
|
| #include "base/values.h"
|
| #include "base/version.h"
|
| -#include "webkit/glue/plugins/plugin_list.h"
|
| -#include "webkit/glue/plugins/webplugininfo.h"
|
| +#include "webkit/plugins/npapi/plugin_list.h"
|
| +#include "webkit/plugins/npapi/webplugininfo.h"
|
|
|
| +namespace webkit {
|
| +namespace npapi {
|
| +
|
| const char* PluginGroup::kAdobeReaderGroupName = "Adobe Reader";
|
|
|
| /*static*/
|
| @@ -46,7 +49,7 @@
|
| /*static*/
|
| bool PluginGroup::IsPluginPathDisabledByPolicy(const FilePath& plugin_path) {
|
| std::vector<WebPluginInfo> plugins;
|
| - NPAPI::PluginList::Singleton()->GetPlugins(false, &plugins);
|
| + PluginList::Singleton()->GetPlugins(false, &plugins);
|
| for (std::vector<WebPluginInfo>::const_iterator it = plugins.begin();
|
| it != plugins.end();
|
| ++it) {
|
| @@ -381,7 +384,7 @@
|
| for (size_t i = 0; i < version_ranges_.size(); ++i) {
|
| if (IsPluginOutdated(*version, version_ranges_[i])) {
|
| it->enabled = false;
|
| - NPAPI::PluginList::Singleton()->DisablePlugin(it->path);
|
| + PluginList::Singleton()->DisablePlugin(it->path);
|
| }
|
| }
|
| }
|
| @@ -395,13 +398,16 @@
|
| web_plugin_infos_.begin();
|
| it != web_plugin_infos_.end(); ++it) {
|
| if (enable && !IsPluginNameDisabledByPolicy(it->name)) {
|
| - NPAPI::PluginList::Singleton()->EnablePlugin(it->path);
|
| + PluginList::Singleton()->EnablePlugin(it->path);
|
| it->enabled = true;
|
| enabled_plugin_exists = true;
|
| } else {
|
| it->enabled = false;
|
| - NPAPI::PluginList::Singleton()->DisablePlugin(it->path);
|
| + PluginList::Singleton()->DisablePlugin(it->path);
|
| }
|
| }
|
| enabled_ = enabled_plugin_exists;
|
| }
|
| +
|
| +} // namespace npapi
|
| +} // namespace webkit
|
|
|