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. |
14 #ifndef NDEBUG | 16 #ifndef NDEBUG |
15 #define IPC_MESSAGE_LOG_ENABLED | 17 #define IPC_MESSAGE_LOG_ENABLED |
16 #endif | 18 #endif |
| 19 #endif |
17 | 20 |
18 namespace IPC { | 21 namespace IPC { |
19 | 22 |
20 //------------------------------------------------------------------------------ | 23 //------------------------------------------------------------------------------ |
21 | 24 |
22 class Channel; | 25 class Channel; |
23 class Message; | 26 class Message; |
24 struct LogData; | 27 struct LogData; |
25 | 28 |
26 class Message : public Pickle { | 29 class Message : public Pickle { |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 | 235 |
233 // indicates a general message not sent to a particular tab. | 236 // indicates a general message not sent to a particular tab. |
234 MSG_ROUTING_CONTROL = kint32max, | 237 MSG_ROUTING_CONTROL = kint32max, |
235 }; | 238 }; |
236 | 239 |
237 #define IPC_REPLY_ID 0xFFF0 // Special message id for replies | 240 #define IPC_REPLY_ID 0xFFF0 // Special message id for replies |
238 #define IPC_LOGGING_ID 0xFFF1 // Special message id for logging | 241 #define IPC_LOGGING_ID 0xFFF1 // Special message id for logging |
239 | 242 |
240 #endif // CHROME_COMMON_IPC_MESSAGE_H__ | 243 #endif // CHROME_COMMON_IPC_MESSAGE_H__ |
241 | 244 |
OLD | NEW |