| 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_UTILS_H_ | 5 #ifndef CHROME_COMMON_IPC_MESSAGE_UTILS_H_ |
| 6 #define CHROME_COMMON_IPC_MESSAGE_UTILS_H_ | 6 #define CHROME_COMMON_IPC_MESSAGE_UTILS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 860 | 860 |
| 861 struct LogData { | 861 struct LogData { |
| 862 std::wstring channel; | 862 std::wstring channel; |
| 863 uint16 type; | 863 uint16 type; |
| 864 std::wstring flags; | 864 std::wstring flags; |
| 865 int64 sent; // Time that the message was sent (i.e. at Send()). | 865 int64 sent; // Time that the message was sent (i.e. at Send()). |
| 866 int64 receive; // Time before it was dispatched (i.e. before calling | 866 int64 receive; // Time before it was dispatched (i.e. before calling |
| 867 // OnMessageReceived). | 867 // OnMessageReceived). |
| 868 int64 dispatch; // Time after it was dispatched (i.e. after calling | 868 int64 dispatch; // Time after it was dispatched (i.e. after calling |
| 869 // OnMessageReceived). | 869 // OnMessageReceived). |
| 870 std::wstring message_name; |
| 870 std::wstring params; | 871 std::wstring params; |
| 871 }; | 872 }; |
| 872 | 873 |
| 873 template <> | 874 template <> |
| 874 struct ParamTraits<LogData> { | 875 struct ParamTraits<LogData> { |
| 875 typedef LogData param_type; | 876 typedef LogData param_type; |
| 876 static void Write(Message* m, const param_type& p) { | 877 static void Write(Message* m, const param_type& p) { |
| 877 WriteParam(m, p.channel); | 878 WriteParam(m, p.channel); |
| 878 WriteParam(m, static_cast<int>(p.type)); | 879 WriteParam(m, static_cast<int>(p.type)); |
| 879 WriteParam(m, p.flags); | 880 WriteParam(m, p.flags); |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1377 l->append(L"<FindInPageRequest>"); | 1378 l->append(L"<FindInPageRequest>"); |
| 1378 } | 1379 } |
| 1379 }; | 1380 }; |
| 1380 | 1381 |
| 1381 //----------------------------------------------------------------------------- | 1382 //----------------------------------------------------------------------------- |
| 1382 | 1383 |
| 1383 } // namespace IPC | 1384 } // namespace IPC |
| 1384 | 1385 |
| 1385 #endif // CHROME_COMMON_IPC_MESSAGE_UTILS_H_ | 1386 #endif // CHROME_COMMON_IPC_MESSAGE_UTILS_H_ |
| 1386 | 1387 |
| OLD | NEW |