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

Side by Side Diff: ipc/ipc_message.h

Issue 1188923003: Stub in more IPC attachment brokering functionality. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing files. Created 5 years, 6 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
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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(base::PickleIterator* iter, 174 bool ReadAttachment(base::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. 178 // Returns true if there are any MojoHandleAttachments in this message.
179 bool HasMojoHandles() const; 179 bool HasMojoHandles() const;
180 // Whether the message has any brokerable attachments.
181 bool HasBrokerableAttachments() const;
180 182
181 #ifdef IPC_MESSAGE_LOG_ENABLED 183 #ifdef IPC_MESSAGE_LOG_ENABLED
182 // Adds the outgoing time from Time::Now() at the end of the message and sets 184 // Adds the outgoing time from Time::Now() at the end of the message and sets
183 // a bit to indicate that it's been added. 185 // a bit to indicate that it's been added.
184 void set_sent_time(int64 time); 186 void set_sent_time(int64 time);
185 int64 sent_time() const; 187 int64 sent_time() const;
186 188
187 void set_received_time(int64 time) const; 189 void set_received_time(int64 time) const;
188 int64 received_time() const { return received_time_; } 190 int64 received_time() const { return received_time_; }
189 void set_output_params(const std::string& op) const { output_params_ = op; } 191 void set_output_params(const std::string& op) const { output_params_ = op; }
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 MSG_ROUTING_NONE = -2, 276 MSG_ROUTING_NONE = -2,
275 277
276 // indicates a general message not sent to a particular tab. 278 // indicates a general message not sent to a particular tab.
277 MSG_ROUTING_CONTROL = kint32max, 279 MSG_ROUTING_CONTROL = kint32max,
278 }; 280 };
279 281
280 #define IPC_REPLY_ID 0xFFFFFFF0 // Special message id for replies 282 #define IPC_REPLY_ID 0xFFFFFFF0 // Special message id for replies
281 #define IPC_LOGGING_ID 0xFFFFFFF1 // Special message id for logging 283 #define IPC_LOGGING_ID 0xFFFFFFF1 // Special message id for logging
282 284
283 #endif // IPC_IPC_MESSAGE_H_ 285 #endif // IPC_IPC_MESSAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698