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

Unified Diff: base/pickle.cc

Issue 1966983003: Generate param traits size methods for IPC files in content/ (and traits it depends on). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix owners Created 4 years, 7 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 | « base/pickle.h ('k') | content/common/cc_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/pickle.cc
diff --git a/base/pickle.cc b/base/pickle.cc
index 94f3b1c9a13ac05700fb56638559074bb10f0c0e..cfb316c13e56974abc7ffb98fa7e4693e40a7301 100644
--- a/base/pickle.cc
+++ b/base/pickle.cc
@@ -231,6 +231,12 @@ void PickleSizer::AddBytes(int length) {
payload_size_ += bits::Align(length, sizeof(uint32_t));
}
+void PickleSizer::AddAttachment() {
+ // From IPC::Message::WriteAttachment
+ AddBool();
+ AddInt();
+}
+
template <size_t length> void PickleSizer::AddBytesStatic() {
DCHECK_LE(length, static_cast<size_t>(std::numeric_limits<int>::max()));
AddBytes(length);
« no previous file with comments | « base/pickle.h ('k') | content/common/cc_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698