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. |