Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Side by Side Diff: ipc/ipc_message.h

Issue 866223005: IPC: Add MojoHandleAttachment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing windows build again... Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ipc/ipc_channel_win.cc ('k') | ipc/ipc_message.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 MojoHandleAttachments in this message.
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
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_
OLDNEW
« no previous file with comments | « ipc/ipc_channel_win.cc ('k') | ipc/ipc_message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698