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

Side by Side Diff: ipc/ipc_message.h

Issue 310293002: Make IPC::Channel polymorphic (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another attempt to fix build breakage Created 6 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 | Annotate | Revision Log
« no previous file with comments | « ipc/ipc_channel_win.cc ('k') | ipc/ipc_send_fds_test.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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 header()->flags); 215 header()->flags);
216 } 216 }
217 // Called to trace when message is received. 217 // Called to trace when message is received.
218 void TraceMessageEnd() { 218 void TraceMessageEnd() {
219 TRACE_EVENT_FLOW_END0(TRACE_DISABLED_BY_DEFAULT("ipc.flow"), "IPC", 219 TRACE_EVENT_FLOW_END0(TRACE_DISABLED_BY_DEFAULT("ipc.flow"), "IPC",
220 header()->flags); 220 header()->flags);
221 } 221 }
222 222
223 protected: 223 protected:
224 friend class Channel; 224 friend class Channel;
225 friend class ChannelNacl;
226 friend class ChannelPosix;
227 friend class ChannelWin;
225 friend class MessageReplyDeserializer; 228 friend class MessageReplyDeserializer;
226 friend class SyncMessage; 229 friend class SyncMessage;
227 230
228 #pragma pack(push, 4) 231 #pragma pack(push, 4)
229 struct Header : Pickle::Header { 232 struct Header : Pickle::Header {
230 int32 routing; // ID of the view that this message is destined for 233 int32 routing; // ID of the view that this message is destined for
231 uint32 type; // specifies the user-defined message type 234 uint32 type; // specifies the user-defined message type
232 uint32 flags; // specifies control flags for the message 235 uint32 flags; // specifies control flags for the message
233 #if defined(OS_POSIX) 236 #if defined(OS_POSIX)
234 uint16 num_fds; // the number of descriptors included with this message 237 uint16 num_fds; // the number of descriptors included with this message
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 MSG_ROUTING_NONE = -2, 286 MSG_ROUTING_NONE = -2,
284 287
285 // indicates a general message not sent to a particular tab. 288 // indicates a general message not sent to a particular tab.
286 MSG_ROUTING_CONTROL = kint32max, 289 MSG_ROUTING_CONTROL = kint32max,
287 }; 290 };
288 291
289 #define IPC_REPLY_ID 0xFFFFFFF0 // Special message id for replies 292 #define IPC_REPLY_ID 0xFFFFFFF0 // Special message id for replies
290 #define IPC_LOGGING_ID 0xFFFFFFF1 // Special message id for logging 293 #define IPC_LOGGING_ID 0xFFFFFFF1 // Special message id for logging
291 294
292 #endif // IPC_IPC_MESSAGE_H_ 295 #endif // IPC_IPC_MESSAGE_H_
OLDNEW
« no previous file with comments | « ipc/ipc_channel_win.cc ('k') | ipc/ipc_send_fds_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698