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); |
}; |