summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ipc/ipc_message_attachment.h4
-rw-r--r--ipc/mach_port_attachment_mac.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/ipc/ipc_message_attachment.h b/ipc/ipc_message_attachment.h
index e7553d2..5ed27ca 100644
--- a/ipc/ipc_message_attachment.h
+++ b/ipc/ipc_message_attachment.h
@@ -15,7 +15,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::RefCounted<MessageAttachment> {
+ : public base::RefCountedThreadSafe<MessageAttachment> {
public:
enum Type {
TYPE_PLATFORM_FILE, // The instance is |PlatformFileAttachment|.
@@ -30,7 +30,7 @@ class IPC_EXPORT MessageAttachment
#endif // OS_POSIX
protected:
- friend class base::RefCounted<MessageAttachment>;
+ friend class base::RefCountedThreadSafe<MessageAttachment>;
MessageAttachment();
virtual ~MessageAttachment();
diff --git a/ipc/mach_port_attachment_mac.h b/ipc/mach_port_attachment_mac.h
index 48dc9aa..7d8c4d5 100644
--- a/ipc/mach_port_attachment_mac.h
+++ b/ipc/mach_port_attachment_mac.h
@@ -67,7 +67,7 @@ class IPC_EXPORT MachPortAttachmentMac : public BrokerableAttachment {
private:
~MachPortAttachmentMac() override;
- mach_port_t mach_port_;
+ const mach_port_t mach_port_;
// In the sender process, the attachment owns the Mach port of a newly created
// message. The attachment broker will eventually take ownership, and set