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

Unified Diff: ipc/brokerable_attachment.cc

Issue 1206093002: Update ChannelReader to use AttachmentBroker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@attachment_broker3_listener
Patch Set: Comments from tsepez. Created 5 years, 5 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/brokerable_attachment.h ('k') | ipc/handle_attachment_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/brokerable_attachment.cc
diff --git a/ipc/brokerable_attachment.cc b/ipc/brokerable_attachment.cc
index 764f2b20a4fa3879241e6b7a3d4582056b8f79bc..9af40d9ed50197bf473699bb1e5a82d29a13a984 100644
--- a/ipc/brokerable_attachment.cc
+++ b/ipc/brokerable_attachment.cc
@@ -21,10 +21,13 @@ BrokerableAttachment::AttachmentId GetRandomId() {
} // namespace
-BrokerableAttachment::BrokerableAttachment() : id_(GetRandomId()) {
+BrokerableAttachment::BrokerableAttachment()
+ : id_(GetRandomId()), needs_brokering_(false) {
}
-BrokerableAttachment::BrokerableAttachment(const AttachmentId& id) : id_(id) {
+BrokerableAttachment::BrokerableAttachment(const AttachmentId& id,
+ bool needs_brokering)
+ : id_(id), needs_brokering_(needs_brokering) {
}
BrokerableAttachment::~BrokerableAttachment() {
@@ -34,6 +37,14 @@ BrokerableAttachment::AttachmentId BrokerableAttachment::GetIdentifier() const {
return id_;
}
+bool BrokerableAttachment::NeedsBrokering() const {
+ return needs_brokering_;
+}
+
+void BrokerableAttachment::SetNeedsBrokering(bool needs_brokering) {
+ needs_brokering_ = needs_brokering;
+}
+
BrokerableAttachment::Type BrokerableAttachment::GetType() const {
return TYPE_BROKERABLE_ATTACHMENT;
}
« no previous file with comments | « ipc/brokerable_attachment.h ('k') | ipc/handle_attachment_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698