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

Unified Diff: content/common/pepper_plugin_registry.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/common/pepper_plugin_registry.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/pepper_plugin_registry.cc
===================================================================
--- content/common/pepper_plugin_registry.cc (revision 96613)
+++ content/common/pepper_plugin_registry.cc (working copy)
@@ -33,7 +33,6 @@
// <file-path> +
// ["#" + <name> + ["#" + <description> + ["#" + <version>]]] +
// *1( LWS + ";" + LWS + <mime-type> )
-
std::vector<std::string> modules;
base::SplitString(value, ',', &modules);
for (size_t i = 0; i < modules.size(); ++i) {
@@ -64,9 +63,9 @@
if (name_parts.size() > 3)
plugin.version = name_parts[3];
for (size_t j = 1; j < parts.size(); ++j) {
- webkit::npapi::WebPluginMimeType mime_type(parts[j],
- std::string(),
- plugin.description);
+ webkit::WebPluginMimeType mime_type(parts[j],
+ std::string(),
+ plugin.description);
plugin.mime_types.push_back(mime_type);
}
@@ -76,8 +75,8 @@
} // namespace
-webkit::npapi::WebPluginInfo PepperPluginInfo::ToWebPluginInfo() const {
- webkit::npapi::WebPluginInfo info;
+webkit::WebPluginInfo PepperPluginInfo::ToWebPluginInfo() const {
+ webkit::WebPluginInfo info;
info.name = name.empty() ? path.BaseName().LossyDisplayName() :
ASCIIToUTF16(name);
@@ -86,12 +85,12 @@
info.desc = ASCIIToUTF16(description);
info.mime_types = mime_types;
- webkit::npapi::WebPluginInfo::EnabledStates enabled_state =
- webkit::npapi::WebPluginInfo::USER_ENABLED_POLICY_UNMANAGED;
+ webkit::WebPluginInfo::EnabledStates enabled_state =
+ webkit::WebPluginInfo::USER_ENABLED_POLICY_UNMANAGED;
if (!enabled) {
enabled_state =
- webkit::npapi::WebPluginInfo::USER_DISABLED_POLICY_UNMANAGED;
+ webkit::WebPluginInfo::USER_DISABLED_POLICY_UNMANAGED;
}
info.enabled = enabled_state;
« no previous file with comments | « content/common/pepper_plugin_registry.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698