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

Unified Diff: content/child/plugin_param_traits.cc

Issue 1659003003: IPC::Message -> base::Pickle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more mac fix Created 4 years, 11 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/child/plugin_param_traits.h ('k') | content/common/cc_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/plugin_param_traits.cc
diff --git a/content/child/plugin_param_traits.cc b/content/child/plugin_param_traits.cc
index 903936ad917fdf08f5e64f43de80d42cde958b5b..0bc61686d40efb05e84e964769f12187e9685c9b 100644
--- a/content/child/plugin_param_traits.cc
+++ b/content/child/plugin_param_traits.cc
@@ -36,7 +36,7 @@ using content::NPVariant_Param;
namespace IPC {
-void ParamTraits<NPVariant_Param>::Write(Message* m, const param_type& p) {
+void ParamTraits<NPVariant_Param>::Write(base::Pickle* m, const param_type& p) {
WriteParam(m, static_cast<int>(p.type));
if (p.type == content::NPVARIANT_PARAM_BOOL) {
WriteParam(m, p.bool_value);
@@ -61,7 +61,7 @@ void ParamTraits<NPVariant_Param>::Write(Message* m, const param_type& p) {
}
}
-bool ParamTraits<NPVariant_Param>::Read(const Message* m,
+bool ParamTraits<NPVariant_Param>::Read(const base::Pickle* m,
base::PickleIterator* iter,
param_type* r) {
int type;
@@ -112,11 +112,12 @@ void ParamTraits<NPVariant_Param>::Log(const param_type& p, std::string* l) {
l->append(")");
}
-void ParamTraits<NPIdentifier_Param>::Write(Message* m, const param_type& p) {
+void ParamTraits<NPIdentifier_Param>::Write(base::Pickle* m,
+ const param_type& p) {
content::SerializeNPIdentifier(p.identifier, m);
}
-bool ParamTraits<NPIdentifier_Param>::Read(const Message* m,
+bool ParamTraits<NPIdentifier_Param>::Read(const base::Pickle* m,
base::PickleIterator* iter,
param_type* r) {
return content::DeserializeNPIdentifier(iter, &r->identifier);
« no previous file with comments | « content/child/plugin_param_traits.h ('k') | content/common/cc_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698