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

Unified Diff: webkit/plugins/npapi/plugin_group.cc

Issue 6012002: Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi and put... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/plugins/npapi/plugin_group.h ('k') | webkit/plugins/npapi/plugin_group_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « webkit/plugins/npapi/plugin_group.h ('k') | webkit/plugins/npapi/plugin_group_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698