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

Unified Diff: content/common/webkit_param_traits.cc

Issue 7990005: Use a placeholder instead of the default plugin for missing plug-ins on Mac and Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 9 years, 2 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/webkit_param_traits.h ('k') | ipc/ipc_message_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/webkit_param_traits.cc
diff --git a/content/common/webkit_param_traits.cc b/content/common/webkit_param_traits.cc
index 634e4076305f38765b8c25c7902a0ff068b6b2a0..bed2f26933230212059f5d287965f1bae7e94d96 100644
--- a/content/common/webkit_param_traits.cc
+++ b/content/common/webkit_param_traits.cc
@@ -341,6 +341,70 @@ void ParamTraits<NPIdentifier_Param>::Log(const param_type& p, std::string* l) {
}
}
+void ParamTraits<webkit::WebPluginMimeType>::Write(Message* m,
+ const param_type& p) {
+ WriteParam(m, p.mime_type);
+ WriteParam(m, p.file_extensions);
+ WriteParam(m, p.description);
+ WriteParam(m, p.additional_param_names);
+ WriteParam(m, p.additional_param_values);
+}
+
+bool ParamTraits<webkit::WebPluginMimeType>::Read(const Message* m,
+ void** iter,
+ param_type* p) {
+ return
+ ReadParam(m, iter, &p->mime_type) &&
+ ReadParam(m, iter, &p->file_extensions) &&
+ ReadParam(m, iter, &p->description) &&
+ ReadParam(m, iter, &p->additional_param_names) &&
+ ReadParam(m, iter, &p->additional_param_values);
+}
+
+void ParamTraits<webkit::WebPluginMimeType>::Log(
+ const param_type& p, std::string* l) {
+ l->append("(");
+ LogParam(p.mime_type, l); l->append(", ");
+ LogParam(p.file_extensions, l); l->append(", ");
+ LogParam(p.description, l); l->append(", ");
+ LogParam(p.additional_param_names, l); l->append(", ");
+ LogParam(p.additional_param_values, l);
+ l->append(")");
+}
+
+void ParamTraits<webkit::WebPluginInfo>::Write(Message* m,
+ const param_type& p) {
+ WriteParam(m, p.name);
+ WriteParam(m, p.path);
+ WriteParam(m, p.version);
+ WriteParam(m, p.desc);
+ WriteParam(m, p.mime_types);
+ WriteParam(m, p.type);
+}
+
+bool ParamTraits<webkit::WebPluginInfo>::Read(const Message* m,
+ void** iter,
+ param_type* p) {
+ return
+ ReadParam(m, iter, &p->name) &&
+ ReadParam(m, iter, &p->path) &&
+ ReadParam(m, iter, &p->version) &&
+ ReadParam(m, iter, &p->desc) &&
+ ReadParam(m, iter, &p->mime_types) &&
+ ReadParam(m, iter, &p->type);
+}
+void ParamTraits<webkit::WebPluginInfo>::Log(const param_type& p,
+ std::string* l) {
+ l->append("(");
+ LogParam(p.name, l); l->append(", ");
+ LogParam(p.path, l); l->append(", ");
+ LogParam(p.version, l); l->append(", ");
+ LogParam(p.desc, l); l->append(", ");
+ LogParam(p.mime_types, l); l->append(", ");
+ LogParam(p.type, l);
+ l->append(")");
+}
+
void ParamTraits<webkit_glue::PasswordForm>::Write(Message* m,
const param_type& p) {
WriteParam(m, p.signon_realm);
« no previous file with comments | « content/common/webkit_param_traits.h ('k') | ipc/ipc_message_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698