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

Unified Diff: ipc/attachment_broker_unprivileged.cc

Issue 1258323004: Reland #1: Clean up interface of attachment broker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/attachment_broker_unprivileged.h ('k') | ipc/ipc_channel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/attachment_broker_unprivileged.cc
diff --git a/ipc/attachment_broker_unprivileged.cc b/ipc/attachment_broker_unprivileged.cc
index bc2eb5a764dbf0dfafa61ea5286bbc04d1b4bb70..f12cfe2748cd62a26666b58af804d925c6060d85 100644
--- a/ipc/attachment_broker_unprivileged.cc
+++ b/ipc/attachment_broker_unprivileged.cc
@@ -4,10 +4,21 @@
#include "ipc/attachment_broker_unprivileged.h"
+#include "ipc/ipc_channel.h"
+
namespace IPC {
-AttachmentBrokerUnprivileged::AttachmentBrokerUnprivileged() {}
+AttachmentBrokerUnprivileged::AttachmentBrokerUnprivileged()
+ : sender_(nullptr) {}
AttachmentBrokerUnprivileged::~AttachmentBrokerUnprivileged() {}
+void AttachmentBrokerUnprivileged::DesignateBrokerCommunicationChannel(
+ IPC::Channel* channel) {
+ DCHECK(channel);
+ DCHECK(!sender_);
+ sender_ = channel;
+ channel->set_attachment_broker_endpoint(true);
+}
+
} // namespace IPC
« no previous file with comments | « ipc/attachment_broker_unprivileged.h ('k') | ipc/ipc_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698