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

Unified Diff: base/pickle.h

Issue 19642005: Make TracedValue lower overhead. Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 4 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
Index: base/pickle.h
diff --git a/base/pickle.h b/base/pickle.h
index 3de2886e5d4c742e79e8d870922027c1dda44e1d..77339772a6451d5b1a0688eca3cb44bc1510963f 100644
--- a/base/pickle.h
+++ b/base/pickle.h
@@ -34,6 +34,7 @@ class BASE_EXPORT PickleIterator {
bool ReadUInt32(uint32* result) WARN_UNUSED_RESULT;
bool ReadInt64(int64* result) WARN_UNUSED_RESULT;
bool ReadUInt64(uint64* result) WARN_UNUSED_RESULT;
+ bool ReadUIntPtr(uintptr_t* result) WARN_UNUSED_RESULT;
bool ReadFloat(float* result) WARN_UNUSED_RESULT;
bool ReadString(std::string* result) WARN_UNUSED_RESULT;
bool ReadWString(std::wstring* result) WARN_UNUSED_RESULT;
@@ -159,6 +160,9 @@ class BASE_EXPORT Pickle {
bool ReadUInt64(PickleIterator* iter, uint64* result) const {
return iter->ReadUInt64(result);
}
+ bool ReadUIntPtr(PickleIterator* iter, uintptr_t* result) const {
+ return iter->ReadUIntPtr(result);
+ }
bool ReadFloat(PickleIterator* iter, float* result) const {
return iter->ReadFloat(result);
}
@@ -222,6 +226,9 @@ class BASE_EXPORT Pickle {
bool WriteUInt64(uint64 value) {
return WriteBytes(&value, sizeof(value));
}
+ bool WriteUIntPtr(uintptr_t value) {
+ return WriteBytes(&value, sizeof(value));
+ }
bool WriteFloat(float value) {
return WriteBytes(&value, sizeof(value));
}
« base/debug/trace_event_value.cc ('K') | « base/json/json_writer.cc ('k') | base/pickle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698