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 7633042: Create ipc.dll. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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_logging.h ('k') | ipc/ipc_message_utils.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 14
14 #ifndef NDEBUG 15 #ifndef NDEBUG
15 #define IPC_MESSAGE_LOG_ENABLED 16 #define IPC_MESSAGE_LOG_ENABLED
16 #endif 17 #endif
17 18
18 #if defined(OS_POSIX) 19 #if defined(OS_POSIX)
19 #include "base/memory/ref_counted.h" 20 #include "base/memory/ref_counted.h"
20 #endif 21 #endif
21 22
22 namespace base { 23 namespace base {
23 struct FileDescriptor; 24 struct FileDescriptor;
24 } 25 }
25 26
26 class FileDescriptorSet; 27 class FileDescriptorSet;
27 28
28 namespace IPC { 29 namespace IPC {
29 30
30 //------------------------------------------------------------------------------ 31 //------------------------------------------------------------------------------
31 32
32 class Channel; 33 class Channel;
33 class Message; 34 class Message;
34 struct LogData; 35 struct LogData;
35 36
36 class Message : public Pickle { 37 class IPC_EXPORT Message : public Pickle {
37 public: 38 public:
38 // Implemented by objects that can send IPC messages across a channel. 39 // Implemented by objects that can send IPC messages across a channel.
39 class Sender { 40 class IPC_EXPORT Sender {
40 public: 41 public:
41 virtual ~Sender() {} 42 virtual ~Sender() {}
42 43
43 // Sends the given IPC message. The implementor takes ownership of the 44 // Sends the given IPC message. The implementor takes ownership of the
44 // given Message regardless of whether or not this method succeeds. This 45 // given Message regardless of whether or not this method succeeds. This
45 // is done to make this method easier to use. Returns true on success and 46 // is done to make this method easier to use. Returns true on success and
46 // false otherwise. 47 // false otherwise.
47 virtual bool Send(Message* msg) = 0; 48 virtual bool Send(Message* msg) = 0;
48 }; 49 };
49 50
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 // indicates that we don't have a routing ID yet. 274 // indicates that we don't have a routing ID yet.
274 MSG_ROUTING_NONE = -2, 275 MSG_ROUTING_NONE = -2,
275 276
276 // indicates a general message not sent to a particular tab. 277 // indicates a general message not sent to a particular tab.
277 MSG_ROUTING_CONTROL = kint32max, 278 MSG_ROUTING_CONTROL = kint32max,
278 }; 279 };
279 280
280 #define IPC_REPLY_ID 0xFFFFFFF0 // Special message id for replies 281 #define IPC_REPLY_ID 0xFFFFFFF0 // Special message id for replies
281 #define IPC_LOGGING_ID 0xFFFFFFF1 // Special message id for logging 282 #define IPC_LOGGING_ID 0xFFFFFFF1 // Special message id for logging
282 283
283 #endif // IPC_IPC_MESSAGE_H__ 284 #endif // IPC_IPC_MESSAGE_H_
OLDNEW
« no previous file with comments | « ipc/ipc_logging.h ('k') | ipc/ipc_message_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698