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

Side by Side Diff: ipc/ipc_message.h

Issue 9425006: Make IPC_MESSAGE_EXPORT more robust. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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 | Annotate | Revision Log
« no previous file with comments | « content/common/utility_messages.h ('k') | ipc/ipc_message_macros.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 #include "ipc/ipc_export.h"
14 14
15 #ifndef NDEBUG 15 // Ipc logging adds a dependency from the 'chrome' target on all ipc message
16 // classes. In a component build, this would require exporting all message
17 // classes, so don't support ipc logging in the components build.
18 #if !defined(NDEBUG) && !defined(COMPONENT_BUILD)
16 #define IPC_MESSAGE_LOG_ENABLED 19 #define IPC_MESSAGE_LOG_ENABLED
17 #endif 20 #endif
18 21
19 #if defined(OS_POSIX) 22 #if defined(OS_POSIX)
20 #include "base/memory/ref_counted.h" 23 #include "base/memory/ref_counted.h"
21 #endif 24 #endif
22 25
23 namespace base { 26 namespace base {
24 struct FileDescriptor; 27 struct FileDescriptor;
25 } 28 }
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 MSG_ROUTING_NONE = -2, 278 MSG_ROUTING_NONE = -2,
276 279
277 // indicates a general message not sent to a particular tab. 280 // indicates a general message not sent to a particular tab.
278 MSG_ROUTING_CONTROL = kint32max, 281 MSG_ROUTING_CONTROL = kint32max,
279 }; 282 };
280 283
281 #define IPC_REPLY_ID 0xFFFFFFF0 // Special message id for replies 284 #define IPC_REPLY_ID 0xFFFFFFF0 // Special message id for replies
282 #define IPC_LOGGING_ID 0xFFFFFFF1 // Special message id for logging 285 #define IPC_LOGGING_ID 0xFFFFFFF1 // Special message id for logging
283 286
284 #endif // IPC_IPC_MESSAGE_H_ 287 #endif // IPC_IPC_MESSAGE_H_
OLDNEW
« no previous file with comments | « content/common/utility_messages.h ('k') | ipc/ipc_message_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698