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

Side by Side Diff: ipc/ipc_message.h

Issue 10698057: Remove Message::Sender and Channel::Listener typedefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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.h ('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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/pickle.h" 12 #include "base/pickle.h"
13 #include "ipc/ipc_export.h" 13 #include "ipc/ipc_export.h"
14 14
15 // TODO(brettw) remove this when the "typedef Sender" is removed below. 15 // TODO(brettw) remove this and update files that depend on this being included
16 // from here.
16 #include "ipc/ipc_sender.h" 17 #include "ipc/ipc_sender.h"
17 18
18 // Ipc logging adds a dependency from the 'chrome' target on all ipc message 19 // Ipc logging adds a dependency from the 'chrome' target on all ipc message
19 // classes. In a component build, this would require exporting all message 20 // classes. In a component build, this would require exporting all message
20 // classes, so don't support ipc logging in the components build. 21 // classes, so don't support ipc logging in the components build.
21 #if !defined(NDEBUG) && !defined(COMPONENT_BUILD) 22 #if !defined(NDEBUG) && !defined(COMPONENT_BUILD)
22 #define IPC_MESSAGE_LOG_ENABLED 23 #define IPC_MESSAGE_LOG_ENABLED
23 #endif 24 #endif
24 25
25 #if defined(OS_POSIX) 26 #if defined(OS_POSIX)
26 #include "base/memory/ref_counted.h" 27 #include "base/memory/ref_counted.h"
27 #endif 28 #endif
28 29
29 namespace base { 30 namespace base {
30 struct FileDescriptor; 31 struct FileDescriptor;
31 } 32 }
32 33
33 class FileDescriptorSet; 34 class FileDescriptorSet;
34 35
35 namespace IPC { 36 namespace IPC {
36 37
37 //------------------------------------------------------------------------------ 38 //------------------------------------------------------------------------------
38 39
39 class Channel; 40 class Channel;
40 class Message; 41 class Message;
41 struct LogData; 42 struct LogData;
42 43
43 class IPC_EXPORT Message : public Pickle { 44 class IPC_EXPORT Message : public Pickle {
44 public: 45 public:
45 // IPC::Sender used to be IPC::Message::Sender which prevented forward
46 // declarations. To keep existing code compiling, we provide this backwards-
47 // compatible definition. New code should use IPC::Sender.
48 // TODO(brettw) convert users of this and delete.
49 typedef IPC::Sender Sender;
50
51 enum PriorityValue { 46 enum PriorityValue {
52 PRIORITY_LOW = 1, 47 PRIORITY_LOW = 1,
53 PRIORITY_NORMAL, 48 PRIORITY_NORMAL,
54 PRIORITY_HIGH 49 PRIORITY_HIGH
55 }; 50 };
56 51
57 // Bit values used in the flags field. 52 // Bit values used in the flags field.
58 enum { 53 enum {
59 PRIORITY_MASK = 0x0003, // Low 2 bits of store the priority value. 54 PRIORITY_MASK = 0x0003, // Low 2 bits of store the priority value.
60 SYNC_BIT = 0x0004, 55 SYNC_BIT = 0x0004,
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 MSG_ROUTING_NONE = -2, 282 MSG_ROUTING_NONE = -2,
288 283
289 // indicates a general message not sent to a particular tab. 284 // indicates a general message not sent to a particular tab.
290 MSG_ROUTING_CONTROL = kint32max, 285 MSG_ROUTING_CONTROL = kint32max,
291 }; 286 };
292 287
293 #define IPC_REPLY_ID 0xFFFFFFF0 // Special message id for replies 288 #define IPC_REPLY_ID 0xFFFFFFF0 // Special message id for replies
294 #define IPC_LOGGING_ID 0xFFFFFFF1 // Special message id for logging 289 #define IPC_LOGGING_ID 0xFFFFFFF1 // Special message id for logging
295 290
296 #endif // IPC_IPC_MESSAGE_H_ 291 #endif // IPC_IPC_MESSAGE_H_
OLDNEW
« no previous file with comments | « ipc/ipc_channel.h ('k') | ipc/ipc_send_fds_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698