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

Unified Diff: ppapi/proxy/resource_message_params.h

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 | « ppapi/proxy/raw_var_data_unittest.cc ('k') | ppapi/proxy/resource_message_params.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/resource_message_params.h
diff --git a/ppapi/proxy/resource_message_params.h b/ppapi/proxy/resource_message_params.h
index 9e76d1ec06c57a331d270237982348dc34780329..098f7812dd7a1802c991e0dff6e130baeb1301a0 100644
--- a/ppapi/proxy/resource_message_params.h
+++ b/ppapi/proxy/resource_message_params.h
@@ -75,16 +75,16 @@ class PPAPI_PROXY_EXPORT ResourceMessageParams {
ResourceMessageParams();
ResourceMessageParams(PP_Resource resource, int32_t sequence);
- virtual void Serialize(IPC::Message* msg) const;
- virtual bool Deserialize(const IPC::Message* msg, base::PickleIterator* iter);
+ virtual void Serialize(base::Pickle* msg) const;
+ virtual bool Deserialize(const base::Pickle* msg, base::PickleIterator* iter);
// Writes everything except the handles to |msg|.
- void WriteHeader(IPC::Message* msg) const;
+ void WriteHeader(base::Pickle* msg) const;
// Writes the handles to |msg|.
- void WriteHandles(IPC::Message* msg) const;
+ void WriteHandles(base::Pickle* msg) const;
// Matching deserialize helpers.
- bool ReadHeader(const IPC::Message* msg, base::PickleIterator* iter);
- bool ReadHandles(const IPC::Message* msg, base::PickleIterator* iter);
+ bool ReadHeader(const base::Pickle* msg, base::PickleIterator* iter);
+ bool ReadHandles(const base::Pickle* msg, base::PickleIterator* iter);
private:
class PPAPI_PROXY_EXPORT SerializedHandles
@@ -147,8 +147,8 @@ class PPAPI_PROXY_EXPORT ResourceMessageCallParams
void set_has_callback() { has_callback_ = true; }
bool has_callback() const { return has_callback_; }
- void Serialize(IPC::Message* msg) const override;
- bool Deserialize(const IPC::Message* msg,
+ void Serialize(base::Pickle* msg) const override;
+ bool Deserialize(const base::Pickle* msg,
base::PickleIterator* iter) override;
private:
@@ -166,12 +166,12 @@ class PPAPI_PROXY_EXPORT ResourceMessageReplyParams
void set_result(int32_t r) { result_ = r; }
int32_t result() const { return result_; }
- void Serialize(IPC::Message* msg) const override;
- bool Deserialize(const IPC::Message* msg,
+ void Serialize(base::Pickle* msg) const override;
+ bool Deserialize(const base::Pickle* msg,
base::PickleIterator* iter) override;
// Writes everything except the handles to |msg|.
- void WriteReplyHeader(IPC::Message* msg) const;
+ void WriteReplyHeader(base::Pickle* msg) const;
private:
// Pepper "result code" for the callback.
@@ -186,10 +186,9 @@ namespace IPC {
template <> struct PPAPI_PROXY_EXPORT
ParamTraits<ppapi::proxy::ResourceMessageCallParams> {
typedef ppapi::proxy::ResourceMessageCallParams param_type;
- static void Write(Message* m, const param_type& p) {
- p.Serialize(m);
- }
- static bool Read(const Message* m, base::PickleIterator* iter,
+ static void Write(base::Pickle* m, const param_type& p) { p.Serialize(m); }
+ static bool Read(const base::Pickle* m,
+ base::PickleIterator* iter,
param_type* r) {
return r->Deserialize(m, iter);
}
@@ -200,10 +199,9 @@ ParamTraits<ppapi::proxy::ResourceMessageCallParams> {
template <> struct PPAPI_PROXY_EXPORT
ParamTraits<ppapi::proxy::ResourceMessageReplyParams> {
typedef ppapi::proxy::ResourceMessageReplyParams param_type;
- static void Write(Message* m, const param_type& p) {
- p.Serialize(m);
- }
- static bool Read(const Message* m, base::PickleIterator* iter,
+ static void Write(base::Pickle* m, const param_type& p) { p.Serialize(m); }
+ static bool Read(const base::Pickle* m,
+ base::PickleIterator* iter,
param_type* r) {
return r->Deserialize(m, iter);
}
« no previous file with comments | « ppapi/proxy/raw_var_data_unittest.cc ('k') | ppapi/proxy/resource_message_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698