OLD | NEW |
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_UTILS_H_ | 5 #ifndef IPC_IPC_MESSAGE_UTILS_H_ |
6 #define IPC_IPC_MESSAGE_UTILS_H_ | 6 #define IPC_IPC_MESSAGE_UTILS_H_ |
7 | 7 |
| 8 #include <stddef.h> |
8 #include <stdint.h> | 9 #include <stdint.h> |
9 | 10 |
10 #include <algorithm> | 11 #include <algorithm> |
11 #include <map> | 12 #include <map> |
12 #include <set> | 13 #include <set> |
13 #include <string> | 14 #include <string> |
14 #include <vector> | 15 #include <vector> |
15 | 16 |
16 #include "base/containers/small_map.h" | 17 #include "base/containers/small_map.h" |
17 #include "base/containers/stack_container.h" | 18 #include "base/containers/stack_container.h" |
18 #include "base/files/file.h" | 19 #include "base/files/file.h" |
19 #include "base/format_macros.h" | 20 #include "base/format_macros.h" |
20 #include "base/memory/scoped_ptr.h" | 21 #include "base/memory/scoped_ptr.h" |
21 #include "base/memory/scoped_vector.h" | 22 #include "base/memory/scoped_vector.h" |
22 #include "base/strings/string16.h" | 23 #include "base/strings/string16.h" |
23 #include "base/strings/string_util.h" | 24 #include "base/strings/string_util.h" |
24 #include "base/strings/stringprintf.h" | 25 #include "base/strings/stringprintf.h" |
25 #include "base/tuple.h" | 26 #include "base/tuple.h" |
| 27 #include "build/build_config.h" |
26 #include "ipc/brokerable_attachment.h" | 28 #include "ipc/brokerable_attachment.h" |
27 #include "ipc/ipc_message_start.h" | 29 #include "ipc/ipc_message_start.h" |
28 #include "ipc/ipc_param_traits.h" | 30 #include "ipc/ipc_param_traits.h" |
29 #include "ipc/ipc_sync_message.h" | 31 #include "ipc/ipc_sync_message.h" |
30 | 32 |
31 #if defined(COMPILER_GCC) | 33 #if defined(COMPILER_GCC) |
32 // GCC "helpfully" tries to inline template methods in release mode. Except we | 34 // GCC "helpfully" tries to inline template methods in release mode. Except we |
33 // want the majority of the template junk being expanded once in the | 35 // want the majority of the template junk being expanded once in the |
34 // implementation file (and only provide the definitions in | 36 // implementation file (and only provide the definitions in |
35 // ipc_message_utils_impl.h in those files) and exported, instead of expanded | 37 // ipc_message_utils_impl.h in those files) and exported, instead of expanded |
(...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1055 template <typename... Ts> | 1057 template <typename... Ts> |
1056 static void WriteReplyParams(Message* reply, Ts... args) { | 1058 static void WriteReplyParams(Message* reply, Ts... args) { |
1057 ReplyParam p(args...); | 1059 ReplyParam p(args...); |
1058 WriteParam(reply, p); | 1060 WriteParam(reply, p); |
1059 } | 1061 } |
1060 }; | 1062 }; |
1061 | 1063 |
1062 } // namespace IPC | 1064 } // namespace IPC |
1063 | 1065 |
1064 #endif // IPC_IPC_MESSAGE_UTILS_H_ | 1066 #endif // IPC_IPC_MESSAGE_UTILS_H_ |
OLD | NEW |