Add screen space opacity to opacity tree
[chromium-blink-merge.git] / ipc / brokerable_attachment.h
blob42d8e9f1d9c9e536a5125f0a43273923b176b82d
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef IPC_BROKERABLE_ATTACHMENT_H_
6 #define IPC_BROKERABLE_ATTACHMENT_H_
8 #include <stdint.h>
10 #include "base/macros.h"
11 #include "ipc/ipc_export.h"
12 #include "ipc/ipc_message_attachment.h"
14 namespace IPC {
16 // This subclass of MessageAttachment requires an AttachmentBroker to be
17 // attached to a Chrome IPC message.
18 class IPC_EXPORT BrokerableAttachment : public MessageAttachment {
19 public:
20 // An id uniquely identifies an attachment sent via a broker.
21 struct IPC_EXPORT AttachmentId {
22 uint32_t nonce[4];
25 // The identifier is unique across all Chrome processes.
26 AttachmentId GetIdentifier() const;
28 protected:
29 BrokerableAttachment();
30 ~BrokerableAttachment() override;
32 private:
33 // This member uniquely identifies a BrokerableAttachment across all Chrome
34 // processes.
35 AttachmentId id_;
36 DISALLOW_COPY_AND_ASSIGN(BrokerableAttachment);
39 } // namespace IPC
41 #endif // IPC_BROKERABLE_ATTACHMENT_H_