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

Unified Diff: ipc/ipc_channel.h

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.cc ('k') | ipc/ipc_channel_nacl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel.h
diff --git a/ipc/ipc_channel.h b/ipc/ipc_channel.h
index c5c46a78048c1df8ce3d2e23bdf5a76a9ac83e24..a9f70b24e34c9136401e755a973b26d236ab433f 100644
--- a/ipc/ipc_channel.h
+++ b/ipc/ipc_channel.h
@@ -165,6 +165,7 @@ class IPC_EXPORT Channel : public Sender {
Listener* listener,
AttachmentBroker* broker = nullptr);
+ Channel() : attachment_broker_endpoint_(false) {}
~Channel() override;
// Connect the pipe. On the server side, this will initiate
@@ -252,6 +253,17 @@ class IPC_EXPORT Channel : public Sender {
static void NotifyProcessForkedForTesting();
#endif
+ void set_attachment_broker_endpoint(bool is_endpoint) {
+ attachment_broker_endpoint_ = is_endpoint;
+ }
+
+ protected:
+ bool is_attachment_broker_endpoint() { return attachment_broker_endpoint_; }
+
+ private:
+ // Whether this channel is used as an endpoint for sending and receiving
+ // brokerable attachment messages to/from the broker process.
+ bool attachment_broker_endpoint_;
};
#if defined(OS_POSIX)
« no previous file with comments | « ipc/attachment_broker_unprivileged.cc ('k') | ipc/ipc_channel_nacl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698