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

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') | chrome/nacl/nacl_ipc_adapter.cc » ('J')
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 47e3bf6af67cd7dec4eb24083cd5064159854722..449fed1c076e898537266fd28ebc90172dc96003 100644
--- a/base/pickle.h
+++ b/base/pickle.h
@@ -259,15 +259,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') | chrome/nacl/nacl_ipc_adapter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698