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. 4 5 #ifndef IPC_PLACEHOLDER_BROKERABLE_ATTACHMENT_H_ 6 #define IPC_PLACEHOLDER_BROKERABLE_ATTACHMENT_H_ 7 8 #include "base/macros.h" 9 #include "ipc/brokerable_attachment.h" 10 #include "ipc/ipc_export.h" 11 12 namespace IPC { 13 14 // This subclass of BrokerableAttachment has an AttachmentId, and nothing else. 15 // It is intended to be replaced by the attachment broker. 16 class IPC_EXPORT PlaceholderBrokerableAttachment : public BrokerableAttachment { 17 public: PlaceholderBrokerableAttachment(const AttachmentId & id)18 PlaceholderBrokerableAttachment(const AttachmentId& id) 19 : BrokerableAttachment(id){}; 20 BrokerableType GetBrokerableType() const override; 21 22 protected: ~PlaceholderBrokerableAttachment()23 ~PlaceholderBrokerableAttachment() override{}; 24 DISALLOW_COPY_AND_ASSIGN(PlaceholderBrokerableAttachment); 25 }; 26 27 } // namespace IPC 28 29 #endif // IPC_PLACEHOLDER_BROKERABLE_ATTACHMENT_H_ 30