| Index: ipc/ipc_message_attachment.h
|
| diff --git a/ipc/ipc_message_attachment.h b/ipc/ipc_message_attachment.h
|
| index dda063000129b06c8bfc7a0c7c36c37cd3256848..7f7137d87b20f7483fdcfbfc75406ed1beb1c5fc 100644
|
| --- a/ipc/ipc_message_attachment.h
|
| +++ b/ipc/ipc_message_attachment.h
|
| @@ -8,6 +8,7 @@
|
| #include "base/files/file.h"
|
| #include "base/macros.h"
|
| #include "base/memory/ref_counted.h"
|
| +#include "base/pickle.h"
|
| #include "build/build_config.h"
|
| #include "ipc/ipc_export.h"
|
|
|
| @@ -15,8 +16,7 @@ namespace IPC {
|
|
|
| // Auxiliary data sent with |Message|. This can be a platform file descriptor
|
| // or a mojo |MessagePipe|. |GetType()| returns the type of the subclass.
|
| -class IPC_EXPORT MessageAttachment
|
| - : public base::RefCountedThreadSafe<MessageAttachment> {
|
| +class IPC_EXPORT MessageAttachment : public base::Pickle::Attachment {
|
| public:
|
| enum Type {
|
| TYPE_PLATFORM_FILE, // The instance is |PlatformFileAttachment|.
|
| @@ -33,7 +33,7 @@ class IPC_EXPORT MessageAttachment
|
| protected:
|
| friend class base::RefCountedThreadSafe<MessageAttachment>;
|
| MessageAttachment();
|
| - virtual ~MessageAttachment();
|
| + ~MessageAttachment() override;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(MessageAttachment);
|
| };
|
|
|