diff options
author | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-29 18:55:18 +0000 |
---|---|---|
committer | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-29 18:55:18 +0000 |
commit | 48ce616af771249804667888297d0081b6b3e249 (patch) | |
tree | 21aecf73bcb129000a2df54887cd569c18b04c5f /base/pickle.h | |
parent | 159b2a3a31ff9aab59dc489e2bb1549eefec6039 (diff) | |
download | chromium_src-48ce616af771249804667888297d0081b6b3e249.zip chromium_src-48ce616af771249804667888297d0081b6b3e249.tar.gz chromium_src-48ce616af771249804667888297d0081b6b3e249.tar.bz2 |
* Bring up render_mesages.cc on POSIX.
* Add Pickle::Read/WriteUint32 & ParamTraits<uint32>.
* Removed NSEvent from WebInputEvent since it appears not to be needed anymore.
Review URL: http://codereview.chromium.org/16479
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7484 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/pickle.h')
-rw-r--r-- | base/pickle.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/pickle.h b/base/pickle.h index 3a17007..66340ca 100644 --- a/base/pickle.h +++ b/base/pickle.h @@ -67,6 +67,7 @@ class Pickle { bool ReadInt(void** iter, int* result) const; bool ReadLong(void** iter, long* result) const; bool ReadSize(void** iter, size_t* result) const; + bool ReadUInt32(void** iter, uint32* result) const; bool ReadInt64(void** iter, int64* result) const; bool ReadIntPtr(void** iter, intptr_t* result) const; bool ReadString(void** iter, std::string* result) const; @@ -94,6 +95,9 @@ class Pickle { bool WriteSize(size_t value) { return WriteBytes(&value, sizeof(value)); } + bool WriteUInt32(uint32 value) { + return WriteBytes(&value, sizeof(value)); + } bool WriteInt64(int64 value) { return WriteBytes(&value, sizeof(value)); } |