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

Unified Diff: ipc/brokerable_attachment.h

Issue 1188923003: Stub in more IPC attachment brokering functionality. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing files. Created 5 years, 6 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/brokerable_attachment.h
diff --git a/ipc/brokerable_attachment.h b/ipc/brokerable_attachment.h
index 42d8e9f1d9c9e536a5125f0a43273923b176b82d..7b91220b3478b715cd80831fc4a1e026b75fcfd8 100644
--- a/ipc/brokerable_attachment.h
+++ b/ipc/brokerable_attachment.h
@@ -22,9 +22,18 @@ class IPC_EXPORT BrokerableAttachment : public MessageAttachment {
uint32_t nonce[4];
};
+ enum BrokerableType {
+ WIN_HANDLE,
+ };
+
// The identifier is unique across all Chrome processes.
AttachmentId GetIdentifier() const;
+ // Returns TYPE_BROKERABLE_ATTACHMENT
+ Type GetType() const override;
+
+ virtual BrokerableType GetBrokerableType() const = 0;
+
protected:
BrokerableAttachment();
~BrokerableAttachment() override;
@@ -32,7 +41,7 @@ class IPC_EXPORT BrokerableAttachment : public MessageAttachment {
private:
// This member uniquely identifies a BrokerableAttachment across all Chrome
// processes.
- AttachmentId id_;
+ const AttachmentId id_;
DISALLOW_COPY_AND_ASSIGN(BrokerableAttachment);
};

Powered by Google App Engine
This is Rietveld 408576698