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

Unified Diff: ipc/ipc_message.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 | « ipc/ipc_message.h ('k') | ipc/ipc_message_attachment.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_message.cc
diff --git a/ipc/ipc_message.cc b/ipc/ipc_message.cc
index 71f7299745283bc94eda0822e33904c62508d6aa..289f08dab06739be44d3eb8fc250fd990dc47649 100644
--- a/ipc/ipc_message.cc
+++ b/ipc/ipc_message.cc
@@ -240,11 +240,13 @@ bool Message::AddPlaceholderBrokerableAttachmentWithId(
return attachment_set()->AddAttachment(attachment);
}
-bool Message::WriteAttachment(scoped_refptr<MessageAttachment> attachment) {
+bool Message::WriteAttachment(
+ scoped_refptr<base::Pickle::Attachment> attachment) {
bool brokerable;
size_t index;
- bool success =
- attachment_set()->AddAttachment(attachment, &index, &brokerable);
+ bool success = attachment_set()->AddAttachment(
+ make_scoped_refptr(static_cast<MessageAttachment*>(attachment.get())),
+ &index, &brokerable);
DCHECK(success);
// Write the type of descriptor.
@@ -264,7 +266,7 @@ bool Message::WriteAttachment(scoped_refptr<MessageAttachment> attachment) {
bool Message::ReadAttachment(
base::PickleIterator* iter,
- scoped_refptr<MessageAttachment>* attachment) const {
+ scoped_refptr<base::Pickle::Attachment>* attachment) const {
bool brokerable;
if (!iter->ReadBool(&brokerable))
return false;
« no previous file with comments | « ipc/ipc_message.h ('k') | ipc/ipc_message_attachment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698