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

Unified Diff: content/common/plugin_list_win.cc

Issue 19894003: Move webplugininfo.h to content/public. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: content/common/plugin_list_win.cc
===================================================================
--- content/common/plugin_list_win.cc (revision 212806)
+++ content/common/plugin_list_win.cc (working copy)
@@ -22,8 +22,7 @@
#include "base/win/windows_version.h"
#include "content/common/plugin_constants_win.h"
-using webkit::WebPluginInfo;
-
+namespace content {
namespace {
const char16 kRegistryApps[] =
@@ -220,8 +219,8 @@
// Returns true if the given plugins share at least one mime type. This is used
// to differentiate newer versions of a plugin vs two plugins which happen to
// have the same filename.
-bool HaveSharedMimeType(const webkit::WebPluginInfo& plugin1,
- const webkit::WebPluginInfo& plugin2) {
+bool HaveSharedMimeType(const WebPluginInfo& plugin1,
+ const WebPluginInfo& plugin2) {
for (size_t i = 0; i < plugin1.mime_types.size(); ++i) {
for (size_t j = 0; j < plugin2.mime_types.size(); ++j) {
if (plugin1.mime_types[i].mime_type == plugin2.mime_types[j].mime_type)
@@ -259,10 +258,8 @@
} // namespace
-namespace content {
-
bool PluginList::ReadWebPluginInfo(const base::FilePath& filename,
- webkit::WebPluginInfo* info) {
+ WebPluginInfo* info) {
// On windows, the way we get the mime types for the library is
// to check the version information in the DLL itself. This
// will be a string of the format: <type1>|<type2>|<type3>|...
@@ -373,8 +370,8 @@
}
bool PluginList::ShouldLoadPluginUsingPluginList(
- const webkit::WebPluginInfo& info,
- std::vector<webkit::WebPluginInfo>* plugins) {
+ const WebPluginInfo& info,
+ std::vector<WebPluginInfo>* plugins) {
// Version check
for (size_t j = 0; j < plugins->size(); ++j) {
base::FilePath::StringType plugin1 =

Powered by Google App Engine
This is Rietveld 408576698