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

Unified Diff: ipc/ipc_message_attachment_set.h

Issue 1414503009: IPC: Remove unnecessary conversions of BrokerableAttachment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
Index: ipc/ipc_message_attachment_set.h
diff --git a/ipc/ipc_message_attachment_set.h b/ipc/ipc_message_attachment_set.h
index 4276fcd9cdc14d899a1863c5467dc0c5895c4479..572c399e8d1750178722299471f1b0dc04ff04e5 100644
--- a/ipc/ipc_message_attachment_set.h
+++ b/ipc/ipc_message_attachment_set.h
@@ -87,12 +87,13 @@ class IPC_EXPORT MessageAttachmentSet
void CommitAllDescriptors();
// Returns a vector of all brokerable attachments.
- std::vector<BrokerableAttachment*> GetBrokerableAttachments() const;
+ std::vector<scoped_refptr<IPC::BrokerableAttachment>>
+ GetBrokerableAttachments() const;
// Replaces a placeholder brokerable attachment with |attachment|, matching
// them by their id.
void ReplacePlaceholderWithAttachment(
- const scoped_refptr<BrokerableAttachment>& attachment);
+ scoped_refptr<BrokerableAttachment> attachment);
Tom Sepez 2015/10/29 19:12:51 and here.
#if defined(OS_POSIX)
// This is the maximum number of descriptors per message. We need to know this

Powered by Google App Engine
This is Rietveld 408576698