OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_COMMON_IPC_MESSAGE_H__ | 5 #ifndef CHROME_COMMON_IPC_MESSAGE_H__ |
6 #define CHROME_COMMON_IPC_MESSAGE_H__ | 6 #define CHROME_COMMON_IPC_MESSAGE_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/pickle.h" | 11 #include "base/pickle.h" |
12 #include "testing/gtest/include/gtest/gtest_prod.h" | 12 #include "testing/gtest/include/gtest/gtest_prod.h" |
13 | 13 |
14 #if defined(OS_WIN) | |
15 // TODO(port): IPC message logging hasn't been ported to other platforms yet. | |
16 #ifndef NDEBUG | 14 #ifndef NDEBUG |
17 #define IPC_MESSAGE_LOG_ENABLED | 15 #define IPC_MESSAGE_LOG_ENABLED |
18 #endif | 16 #endif |
19 #elif defined(OS_POSIX) | 17 |
| 18 #if defined(OS_POSIX) |
20 #include "chrome/common/descriptor_set_posix.h" | 19 #include "chrome/common/descriptor_set_posix.h" |
21 #endif | 20 #endif |
22 | 21 |
23 namespace IPC { | 22 namespace IPC { |
24 | 23 |
25 //------------------------------------------------------------------------------ | 24 //------------------------------------------------------------------------------ |
26 | 25 |
27 class Channel; | 26 class Channel; |
28 class Message; | 27 class Message; |
29 struct LogData; | 28 struct LogData; |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 | 248 |
250 // indicates a general message not sent to a particular tab. | 249 // indicates a general message not sent to a particular tab. |
251 MSG_ROUTING_CONTROL = kint32max, | 250 MSG_ROUTING_CONTROL = kint32max, |
252 }; | 251 }; |
253 | 252 |
254 #define IPC_REPLY_ID 0xFFF0 // Special message id for replies | 253 #define IPC_REPLY_ID 0xFFF0 // Special message id for replies |
255 #define IPC_LOGGING_ID 0xFFF1 // Special message id for logging | 254 #define IPC_LOGGING_ID 0xFFF1 // Special message id for logging |
256 | 255 |
257 #endif // CHROME_COMMON_IPC_MESSAGE_H__ | 256 #endif // CHROME_COMMON_IPC_MESSAGE_H__ |
258 | 257 |
OLD | NEW |