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

Unified Diff: ipc/attachment_broker_privileged.h

Issue 1270683002: ipc: Make a common subclass for Channel and ProxyChannel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More rebase errors. Created 5 years, 4 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/BUILD.gn ('k') | ipc/attachment_broker_privileged.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/attachment_broker_privileged.h
diff --git a/ipc/attachment_broker_privileged.h b/ipc/attachment_broker_privileged.h
index 52befc45196109fdb2269ca6201dec671e50bec8..e8c675574c500a4766395e20bcff60e167c8e9d0 100644
--- a/ipc/attachment_broker_privileged.h
+++ b/ipc/attachment_broker_privileged.h
@@ -12,7 +12,8 @@
namespace IPC {
-class Channel;
+class Endpoint;
+class Sender;
// This abstract subclass of AttachmentBroker is intended for use in a
// privileged process . When unprivileged processes want to send attachments,
@@ -27,15 +28,16 @@ class IPC_EXPORT AttachmentBrokerPrivileged : public IPC::AttachmentBroker {
// communicates attachment information with the broker process. In the broker
// process, these channels must be registered and deregistered with the
// Attachment Broker as they are created and destroyed.
- void RegisterCommunicationChannel(Channel* channel);
- void DeregisterCommunicationChannel(Channel* channel);
+ void RegisterCommunicationChannel(Endpoint* endpoint);
+ void DeregisterCommunicationChannel(Endpoint* endpoint);
protected:
- // Returns nullptr if no channel is found.
- Channel* GetChannelWithProcessId(base::ProcessId id);
+ // Returns the sender whose peer's process id is |id|.
+ // Returns nullptr if no sender is found.
+ Sender* GetSenderWithProcessId(base::ProcessId id);
private:
- std::vector<Channel*> channels_;
+ std::vector<Endpoint*> endpoints_;
DISALLOW_COPY_AND_ASSIGN(AttachmentBrokerPrivileged);
};
« no previous file with comments | « ipc/BUILD.gn ('k') | ipc/attachment_broker_privileged.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698