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

Unified Diff: base/pickle.cc

Issue 1659003003: IPC::Message -> base::Pickle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more mac fix Created 4 years, 11 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') | chrome/common/cast_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 d83391bb524194b212a1f86ea0da26c1befd84ea..8aa9f62efd86b004d61ca46ec6a7d7249b293090 100644
--- a/base/pickle.cc
+++ b/base/pickle.cc
@@ -208,6 +208,10 @@ bool PickleIterator::ReadBytes(const char** data, int length) {
return true;
}
+Pickle::Attachment::Attachment() {}
+
+Pickle::Attachment::~Attachment() {}
+
// Payload is uint32_t aligned.
Pickle::Pickle()
@@ -322,6 +326,19 @@ void Pickle::Reserve(size_t length) {
Resize(capacity_after_header_ * 2 + new_size);
}
+bool Pickle::WriteAttachment(scoped_refptr<Attachment> attachment) {
+ return false;
+}
+
+bool Pickle::ReadAttachment(base::PickleIterator* iter,
+ scoped_refptr<Attachment>* attachment) const {
+ return false;
+}
+
+bool Pickle::HasAttachments() const {
+ return false;
+}
+
void Pickle::Resize(size_t new_capacity) {
CHECK_NE(capacity_after_header_, kCapacityReadOnly);
capacity_after_header_ = bits::Align(new_capacity, kPayloadUnit);
« no previous file with comments | « base/pickle.h ('k') | chrome/common/cast_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698