Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_IPC_MESSAGE_H_ | 5 #ifndef IPC_IPC_MESSAGE_H_ |
| 6 #define IPC_IPC_MESSAGE_H_ | 6 #define IPC_IPC_MESSAGE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 168 | 168 |
| 169 // WriteAttachment appends |attachment| to the end of the set. It returns | 169 // WriteAttachment appends |attachment| to the end of the set. It returns |
| 170 // false iff the set is full. | 170 // false iff the set is full. |
| 171 bool WriteAttachment(scoped_refptr<MessageAttachment> attachment); | 171 bool WriteAttachment(scoped_refptr<MessageAttachment> attachment); |
| 172 // ReadAttachment parses an attachment given the parsing state |iter| and | 172 // ReadAttachment parses an attachment given the parsing state |iter| and |
| 173 // writes it to |*attachment|. It returns true on success. | 173 // writes it to |*attachment|. It returns true on success. |
| 174 bool ReadAttachment(PickleIterator* iter, | 174 bool ReadAttachment(PickleIterator* iter, |
| 175 scoped_refptr<MessageAttachment>* attachment) const; | 175 scoped_refptr<MessageAttachment>* attachment) const; |
| 176 // Returns true if there are any attachment in this message. | 176 // Returns true if there are any attachment in this message. |
| 177 bool HasAttachments() const; | 177 bool HasAttachments() const; |
| 178 // Returns true if there are any MojoHandleAttachment in this message. | |
|
agl
2015/02/04 00:17:46
s on the end of "MojoHandleAttachment"?
Hajime Morrita
2015/02/04 00:44:51
Done.
| |
| 179 bool HasMojoHandles() const; | |
| 178 | 180 |
| 179 #ifdef IPC_MESSAGE_LOG_ENABLED | 181 #ifdef IPC_MESSAGE_LOG_ENABLED |
| 180 // Adds the outgoing time from Time::Now() at the end of the message and sets | 182 // Adds the outgoing time from Time::Now() at the end of the message and sets |
| 181 // a bit to indicate that it's been added. | 183 // a bit to indicate that it's been added. |
| 182 void set_sent_time(int64 time); | 184 void set_sent_time(int64 time); |
| 183 int64 sent_time() const; | 185 int64 sent_time() const; |
| 184 | 186 |
| 185 void set_received_time(int64 time) const; | 187 void set_received_time(int64 time) const; |
| 186 int64 received_time() const { return received_time_; } | 188 int64 received_time() const { return received_time_; } |
| 187 void set_output_params(const std::string& op) const { output_params_ = op; } | 189 void set_output_params(const std::string& op) const { output_params_ = op; } |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 272 MSG_ROUTING_NONE = -2, | 274 MSG_ROUTING_NONE = -2, |
| 273 | 275 |
| 274 // indicates a general message not sent to a particular tab. | 276 // indicates a general message not sent to a particular tab. |
| 275 MSG_ROUTING_CONTROL = kint32max, | 277 MSG_ROUTING_CONTROL = kint32max, |
| 276 }; | 278 }; |
| 277 | 279 |
| 278 #define IPC_REPLY_ID 0xFFFFFFF0 // Special message id for replies | 280 #define IPC_REPLY_ID 0xFFFFFFF0 // Special message id for replies |
| 279 #define IPC_LOGGING_ID 0xFFFFFFF1 // Special message id for logging | 281 #define IPC_LOGGING_ID 0xFFFFFFF1 // Special message id for logging |
| 280 | 282 |
| 281 #endif // IPC_IPC_MESSAGE_H_ | 283 #endif // IPC_IPC_MESSAGE_H_ |
| OLD | NEW |