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

Unified Diff: ipc/attachment_broker_unprivileged.cc

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/attachment_broker_unprivileged.h ('k') | ipc/ipc.gypi » ('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 45aeae89e672021f46382b41218071f67ea6534d..44125b3b74f76bd60b333569bc93c4cc57265ed5 100644
--- a/ipc/attachment_broker_unprivileged.cc
+++ b/ipc/attachment_broker_unprivileged.cc
@@ -5,7 +5,7 @@
#include "ipc/attachment_broker_unprivileged.h"
#include "ipc/ipc_channel.h"
-#include "ipc/ipc_channel_proxy.h"
+#include "ipc/ipc_endpoint.h"
namespace IPC {
@@ -15,19 +15,11 @@ AttachmentBrokerUnprivileged::AttachmentBrokerUnprivileged()
AttachmentBrokerUnprivileged::~AttachmentBrokerUnprivileged() {}
void AttachmentBrokerUnprivileged::DesignateBrokerCommunicationChannel(
- IPC::Channel* channel) {
- DCHECK(channel);
+ Endpoint* endpoint) {
+ DCHECK(endpoint);
DCHECK(!sender_);
- sender_ = channel;
- channel->set_attachment_broker_endpoint(true);
-}
-
-void AttachmentBrokerUnprivileged::DesignateBrokerCommunicationChannel(
- IPC::ChannelProxy* proxy) {
- DCHECK(proxy);
- DCHECK(!sender_);
- sender_ = proxy;
- proxy->SetAttachmentBrokerEndpoint(true);
+ sender_ = endpoint;
+ endpoint->SetAttachmentBrokerEndpoint(true);
}
} // namespace IPC
« no previous file with comments | « ipc/attachment_broker_unprivileged.h ('k') | ipc/ipc.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698