| 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_BROKERABLE_ATTACHMENT_H_ | 5 #ifndef IPC_BROKERABLE_ATTACHMENT_H_ |
| 6 #define IPC_BROKERABLE_ATTACHMENT_H_ | 6 #define IPC_BROKERABLE_ATTACHMENT_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 8 #include <stdint.h> | 9 #include <stdint.h> |
| 9 | 10 |
| 10 #include <algorithm> | 11 #include <algorithm> |
| 11 | 12 |
| 12 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "build/build_config.h" |
| 13 #include "ipc/ipc_export.h" | 15 #include "ipc/ipc_export.h" |
| 14 #include "ipc/ipc_message_attachment.h" | 16 #include "ipc/ipc_message_attachment.h" |
| 15 | 17 |
| 16 namespace IPC { | 18 namespace IPC { |
| 17 | 19 |
| 18 // This subclass of MessageAttachment requires an AttachmentBroker to be | 20 // This subclass of MessageAttachment requires an AttachmentBroker to be |
| 19 // attached to a Chrome IPC message. | 21 // attached to a Chrome IPC message. |
| 20 class IPC_EXPORT BrokerableAttachment : public MessageAttachment { | 22 class IPC_EXPORT BrokerableAttachment : public MessageAttachment { |
| 21 public: | 23 public: |
| 22 static const size_t kNonceSize = 16; | 24 static const size_t kNonceSize = 16; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 // This member uniquely identifies a BrokerableAttachment across all Chrome | 82 // This member uniquely identifies a BrokerableAttachment across all Chrome |
| 81 // processes. | 83 // processes. |
| 82 const AttachmentId id_; | 84 const AttachmentId id_; |
| 83 | 85 |
| 84 DISALLOW_COPY_AND_ASSIGN(BrokerableAttachment); | 86 DISALLOW_COPY_AND_ASSIGN(BrokerableAttachment); |
| 85 }; | 87 }; |
| 86 | 88 |
| 87 } // namespace IPC | 89 } // namespace IPC |
| 88 | 90 |
| 89 #endif // IPC_BROKERABLE_ATTACHMENT_H_ | 91 #endif // IPC_BROKERABLE_ATTACHMENT_H_ |
| OLD | NEW |