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

Unified Diff: base/pickle.h

Issue 9863005: Initial implementation of an IPC adapter to expose Chrome IPC to Native Client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | « no previous file | chrome/chrome_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/pickle.h
diff --git a/base/pickle.h b/base/pickle.h
index baa20f6d88d5741d30ea34d6e933f634d1ef2f8d..2420f756270df665b2f164a5b4ff630779889a0f 100644
--- a/base/pickle.h
+++ b/base/pickle.h
@@ -257,15 +257,16 @@ class BASE_EXPORT Pickle {
return static_cast<const T*>(header_);
}
- protected:
+ // The payload is the pickle data immediately following the header.
size_t payload_size() const { return header_->payload_size; }
+ const char* payload() const {
+ return reinterpret_cast<const char*>(header_) + header_size_;
+ }
+ protected:
char* payload() {
return reinterpret_cast<char*>(header_) + header_size_;
}
- const char* payload() const {
- return reinterpret_cast<const char*>(header_) + header_size_;
- }
// Returns the address of the byte immediately following the currently valid
// header + payload.
« no previous file with comments | « no previous file | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698