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

Unified Diff: content/browser/renderer_host/render_message_filter.cc

Issue 7648017: Make WebPluginInfo more generic (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/render_message_filter.h ('k') | content/common/pepper_plugin_registry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_message_filter.cc
===================================================================
--- content/browser/renderer_host/render_message_filter.cc (revision 96613)
+++ content/browser/renderer_host/render_message_filter.cc (working copy)
@@ -56,7 +56,7 @@
#include "webkit/plugins/npapi/plugin_group.h"
#include "webkit/plugins/npapi/plugin_list.h"
#include "webkit/plugins/npapi/webplugin.h"
-#include "webkit/plugins/npapi/webplugininfo.h"
+#include "webkit/plugins/webplugininfo.h"
#if defined(OS_MACOSX)
#include "content/common/font_descriptor_mac.h"
@@ -133,7 +133,7 @@
return filter()->OffTheRecord();
}
- virtual void SetPluginInfo(const webkit::npapi::WebPluginInfo& info) {
+ virtual void SetPluginInfo(const webkit::WebPluginInfo& info) {
info_ = info;
}
@@ -152,7 +152,7 @@
SendReplyAndDeleteThis();
}
- webkit::npapi::WebPluginInfo info_;
+ webkit::WebPluginInfo info_;
};
class OpenChannelToPpapiPluginCallback : public RenderMessageCompletionCallback,
@@ -518,7 +518,7 @@
void RenderMessageFilter::OnGetPlugins(
bool refresh,
- std::vector<webkit::npapi::WebPluginInfo>* plugins) {
+ std::vector<webkit::WebPluginInfo>* plugins) {
// Don't refresh if the specified threshold has not been passed. Note that
// this check is performed before off-loading to the file thread. The reason
// we do this is that some pages tend to request that the list of plugins be
@@ -536,10 +536,10 @@
}
}
- std::vector<webkit::npapi::WebPluginInfo> all_plugins;
+ std::vector<webkit::WebPluginInfo> all_plugins;
webkit::npapi::PluginList::Singleton()->GetPlugins(&all_plugins);
for (size_t i = 0; i < all_plugins.size(); ++i) {
- if (webkit::npapi::IsPluginEnabled(all_plugins[i]))
+ if (webkit::IsPluginEnabled(all_plugins[i]))
plugins->push_back(all_plugins[i]);
}
}
@@ -550,14 +550,14 @@
const GURL& policy_url,
const std::string& mime_type,
bool* found,
- webkit::npapi::WebPluginInfo* info,
+ webkit::WebPluginInfo* info,
std::string* actual_mime_type) {
*found = plugin_service_->GetPluginInfo(
render_process_id_, routing_id, url, mime_type, info, actual_mime_type);
if (*found) {
if (!plugin_service_->PluginAllowedForURL(info->path, policy_url))
- info->enabled |= webkit::npapi::WebPluginInfo::POLICY_DISABLED;
+ info->enabled |= webkit::WebPluginInfo::POLICY_DISABLED;
}
}
« no previous file with comments | « content/browser/renderer_host/render_message_filter.h ('k') | content/common/pepper_plugin_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698