OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef IPC_PLACEHOLDER_BROKERABLE_ATTACHMENT_H_ | 5 #ifndef IPC_PLACEHOLDER_BROKERABLE_ATTACHMENT_H_ |
6 #define IPC_PLACEHOLDER_BROKERABLE_ATTACHMENT_H_ | 6 #define IPC_PLACEHOLDER_BROKERABLE_ATTACHMENT_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "ipc/brokerable_attachment.h" | 9 #include "ipc/brokerable_attachment.h" |
9 #include "ipc/ipc_export.h" | 10 #include "ipc/ipc_export.h" |
10 | 11 |
11 namespace IPC { | 12 namespace IPC { |
12 | 13 |
13 // This subclass of BrokerableAttachment has an AttachmentId, and nothing else. | 14 // This subclass of BrokerableAttachment has an AttachmentId, and nothing else. |
14 // It is intended to be replaced by the attachment broker. | 15 // It is intended to be replaced by the attachment broker. |
15 class IPC_EXPORT PlaceholderBrokerableAttachment : public BrokerableAttachment { | 16 class IPC_EXPORT PlaceholderBrokerableAttachment : public BrokerableAttachment { |
16 public: | 17 public: |
17 PlaceholderBrokerableAttachment(const AttachmentId& id) | 18 PlaceholderBrokerableAttachment(const AttachmentId& id) |
18 : BrokerableAttachment(id){}; | 19 : BrokerableAttachment(id){}; |
19 BrokerableType GetBrokerableType() const override; | 20 BrokerableType GetBrokerableType() const override; |
20 | 21 |
21 protected: | 22 protected: |
22 ~PlaceholderBrokerableAttachment() override{}; | 23 ~PlaceholderBrokerableAttachment() override{}; |
23 DISALLOW_COPY_AND_ASSIGN(PlaceholderBrokerableAttachment); | 24 DISALLOW_COPY_AND_ASSIGN(PlaceholderBrokerableAttachment); |
24 }; | 25 }; |
25 | 26 |
26 } // namespace IPC | 27 } // namespace IPC |
27 | 28 |
28 #endif // IPC_PLACEHOLDER_BROKERABLE_ATTACHMENT_H_ | 29 #endif // IPC_PLACEHOLDER_BROKERABLE_ATTACHMENT_H_ |
OLD | NEW |