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

Unified Diff: ipc/attachment_broker_unprivileged.h

Issue 1269553003: ipc: Clean up interface of attachment broker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update BUILD.gn 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
Index: ipc/attachment_broker_unprivileged.h
diff --git a/ipc/attachment_broker_unprivileged.h b/ipc/attachment_broker_unprivileged.h
index 3d98d495932d59ed98d6950d658c00b6a7944362..695a4304d569baeec2c478e4533d20a9e4d01811 100644
--- a/ipc/attachment_broker_unprivileged.h
+++ b/ipc/attachment_broker_unprivileged.h
@@ -10,6 +10,7 @@
namespace IPC {
+class Channel;
class Sender;
// This abstract subclass of AttachmentBroker is intended for use in
@@ -19,7 +20,9 @@ class IPC_EXPORT AttachmentBrokerUnprivileged : public IPC::AttachmentBroker {
AttachmentBrokerUnprivileged();
~AttachmentBrokerUnprivileged() override;
- void set_sender(IPC::Sender* sender) { sender_ = sender; }
+ // In each unprivileged process, exactly one channel should be used to
+ // communicate brokerable attachments with the broker process..
Tom Sepez 2015/07/30 00:35:47 nit: ..
erikchen 2015/07/30 01:38:19 Done.
+ void DesignateBrokerCommunicationChannel(IPC::Channel* channel);
protected:
IPC::Sender* get_sender() { return sender_; }

Powered by Google App Engine
This is Rietveld 408576698