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 <algorithm> | 8 #include <algorithm> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/format_macros.h" | 14 #include "base/format_macros.h" |
15 #include "base/memory/scoped_vector.h" | 15 #include "base/memory/scoped_vector.h" |
16 #include "base/platform_file.h" | 16 #include "base/platform_file.h" |
17 #include "base/string16.h" | 17 #include "base/strings/string16.h" |
18 #include "base/stringprintf.h" | 18 #include "base/strings/string_util.h" |
19 #include "base/string_util.h" | 19 #include "base/strings/stringprintf.h" |
20 #include "base/tuple.h" | 20 #include "base/tuple.h" |
21 #include "ipc/ipc_message_start.h" | 21 #include "ipc/ipc_message_start.h" |
22 #include "ipc/ipc_param_traits.h" | 22 #include "ipc/ipc_param_traits.h" |
23 #include "ipc/ipc_sync_message.h" | 23 #include "ipc/ipc_sync_message.h" |
24 | 24 |
25 #if defined(COMPILER_GCC) | 25 #if defined(COMPILER_GCC) |
26 // GCC "helpfully" tries to inline template methods in release mode. Except we | 26 // GCC "helpfully" tries to inline template methods in release mode. Except we |
27 // want the majority of the template junk being expanded once in the | 27 // want the majority of the template junk being expanded once in the |
28 // implementation file (and only provide the definitions in | 28 // implementation file (and only provide the definitions in |
29 // ipc_message_utils_impl.h in those files) and exported, instead of expanded | 29 // ipc_message_utils_impl.h in those files) and exported, instead of expanded |
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
867 template<typename TA, typename TB, typename TC, typename TD, typename TE> | 867 template<typename TA, typename TB, typename TC, typename TD, typename TE> |
868 static void WriteReplyParams(Message* reply, TA a, TB b, TC c, TD d, TE e) { | 868 static void WriteReplyParams(Message* reply, TA a, TB b, TC c, TD d, TE e) { |
869 ReplyParam p(a, b, c, d, e); | 869 ReplyParam p(a, b, c, d, e); |
870 WriteParam(reply, p); | 870 WriteParam(reply, p); |
871 } | 871 } |
872 }; | 872 }; |
873 | 873 |
874 } // namespace IPC | 874 } // namespace IPC |
875 | 875 |
876 #endif // IPC_IPC_MESSAGE_UTILS_H_ | 876 #endif // IPC_IPC_MESSAGE_UTILS_H_ |
OLD | NEW |