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

Unified Diff: remoting/host/chromoting_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 | « remoting/host/chromoting_param_traits.h ('k') | ui/events/ipc/latency_info_param_traits.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/chromoting_param_traits.cc
diff --git a/remoting/host/chromoting_param_traits.cc b/remoting/host/chromoting_param_traits.cc
index 80e749e13b99f815cf0e5bcabf30f0c100da4d2c..89918aa8d2fb846ce0efdb819acc1e8e6213d32b 100644
--- a/remoting/host/chromoting_param_traits.cc
+++ b/remoting/host/chromoting_param_traits.cc
@@ -12,14 +12,14 @@
namespace IPC {
// static
-void ParamTraits<webrtc::DesktopVector>::Write(Message* m,
+void ParamTraits<webrtc::DesktopVector>::Write(base::Pickle* m,
const webrtc::DesktopVector& p) {
m->WriteInt(p.x());
m->WriteInt(p.y());
}
// static
-bool ParamTraits<webrtc::DesktopVector>::Read(const Message* m,
+bool ParamTraits<webrtc::DesktopVector>::Read(const base::Pickle* m,
base::PickleIterator* iter,
webrtc::DesktopVector* r) {
int x, y;
@@ -37,14 +37,14 @@ void ParamTraits<webrtc::DesktopVector>::Log(const webrtc::DesktopVector& p,
}
// static
-void ParamTraits<webrtc::DesktopSize>::Write(Message* m,
+void ParamTraits<webrtc::DesktopSize>::Write(base::Pickle* m,
const webrtc::DesktopSize& p) {
m->WriteInt(p.width());
m->WriteInt(p.height());
}
// static
-bool ParamTraits<webrtc::DesktopSize>::Read(const Message* m,
+bool ParamTraits<webrtc::DesktopSize>::Read(const base::Pickle* m,
base::PickleIterator* iter,
webrtc::DesktopSize* r) {
int width, height;
@@ -62,7 +62,7 @@ void ParamTraits<webrtc::DesktopSize>::Log(const webrtc::DesktopSize& p,
}
// static
-void ParamTraits<webrtc::DesktopRect>::Write(Message* m,
+void ParamTraits<webrtc::DesktopRect>::Write(base::Pickle* m,
const webrtc::DesktopRect& p) {
m->WriteInt(p.left());
m->WriteInt(p.top());
@@ -71,7 +71,7 @@ void ParamTraits<webrtc::DesktopRect>::Write(Message* m,
}
// static
-bool ParamTraits<webrtc::DesktopRect>::Read(const Message* m,
+bool ParamTraits<webrtc::DesktopRect>::Read(const base::Pickle* m,
base::PickleIterator* iter,
webrtc::DesktopRect* r) {
int left, right, top, bottom;
@@ -91,9 +91,8 @@ void ParamTraits<webrtc::DesktopRect>::Log(const webrtc::DesktopRect& p,
}
// static
-void ParamTraits<webrtc::MouseCursor>::Write(
- Message* m,
- const webrtc::MouseCursor& p) {
+void ParamTraits<webrtc::MouseCursor>::Write(base::Pickle* m,
+ const webrtc::MouseCursor& p) {
ParamTraits<webrtc::DesktopSize>::Write(m, p.image()->size());
// Data is serialized in such a way that size is exactly width * height *
@@ -112,7 +111,7 @@ void ParamTraits<webrtc::MouseCursor>::Write(
}
// static
-bool ParamTraits<webrtc::MouseCursor>::Read(const Message* m,
+bool ParamTraits<webrtc::MouseCursor>::Read(const base::Pickle* m,
base::PickleIterator* iter,
webrtc::MouseCursor* r) {
webrtc::DesktopSize size;
@@ -155,7 +154,7 @@ void ParamTraits<webrtc::MouseCursor>::Log(
// static
void ParamTraits<remoting::ScreenResolution>::Write(
- Message* m,
+ base::Pickle* m,
const remoting::ScreenResolution& p) {
ParamTraits<webrtc::DesktopSize>::Write(m, p.dimensions());
ParamTraits<webrtc::DesktopVector>::Write(m, p.dpi());
@@ -163,7 +162,7 @@ void ParamTraits<remoting::ScreenResolution>::Write(
// static
bool ParamTraits<remoting::ScreenResolution>::Read(
- const Message* m,
+ const base::Pickle* m,
base::PickleIterator* iter,
remoting::ScreenResolution* r) {
webrtc::DesktopSize size;
« no previous file with comments | « remoting/host/chromoting_param_traits.h ('k') | ui/events/ipc/latency_info_param_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698