| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 #endif | 43 #endif |
| 44 | 44 |
| 45 // Used by IPC_BEGIN_MESSAGES so that each message class starts from a unique | 45 // Used by IPC_BEGIN_MESSAGES so that each message class starts from a unique |
| 46 // base. Messages have unique IDs across channels in order for the IPC logging | 46 // base. Messages have unique IDs across channels in order for the IPC logging |
| 47 // code to figure out the message class from its ID. | 47 // code to figure out the message class from its ID. |
| 48 enum IPCMessageStart { | 48 enum IPCMessageStart { |
| 49 // By using a start value of 0 for automation messages, we keep backward | 49 // By using a start value of 0 for automation messages, we keep backward |
| 50 // compatibility with old builds. | 50 // compatibility with old builds. |
| 51 AutomationMsgStart = 0, | 51 AutomationMsgStart = 0, |
| 52 ViewMsgStart, | 52 ViewMsgStart, |
| 53 ViewHostMsgStart, | |
| 54 PluginProcessMsgStart, | |
| 55 PluginProcessHostMsgStart, | |
| 56 PluginMsgStart, | 53 PluginMsgStart, |
| 57 PluginHostMsgStart, | 54 ProfileImportMsgStart, |
| 58 ProfileImportProcessMsgStart, | |
| 59 ProfileImportProcessHostMsgStart, | |
| 60 NPObjectMsgStart, | |
| 61 TestMsgStart, | 55 TestMsgStart, |
| 62 DevToolsAgentMsgStart, | 56 DevToolsMsgStart, |
| 63 DevToolsClientMsgStart, | |
| 64 WorkerProcessMsgStart, | |
| 65 WorkerProcessHostMsgStart, | |
| 66 WorkerMsgStart, | 57 WorkerMsgStart, |
| 67 WorkerHostMsgStart, | 58 NaClMsgStart, |
| 68 NaClProcessMsgStart, | |
| 69 GpuCommandBufferMsgStart, | |
| 70 UtilityMsgStart, | 59 UtilityMsgStart, |
| 71 UtilityHostMsgStart, | |
| 72 GpuMsgStart, | 60 GpuMsgStart, |
| 73 GpuHostMsgStart, | |
| 74 GpuChannelMsgStart, | |
| 75 GpuVideoDecoderHostMsgStart, | |
| 76 GpuVideoDecoderMsgStart, | |
| 77 ServiceMsgStart, | 61 ServiceMsgStart, |
| 78 ServiceHostMsgStart, | |
| 79 PpapiMsgStart, | 62 PpapiMsgStart, |
| 80 PpapiHostMsgStart, | 63 FirefoxImporterUnittestMsgStart, |
| 81 // NOTE: When you add a new message class, also update | |
| 82 // IPCStatusView::IPCStatusView to ensure logging works. | |
| 83 LastMsgIndex | |
| 84 }; | 64 }; |
| 85 | 65 |
| 86 class DictionaryValue; | 66 class DictionaryValue; |
| 87 class FilePath; | 67 class FilePath; |
| 88 class ListValue; | 68 class ListValue; |
| 89 class NullableString16; | 69 class NullableString16; |
| 90 | 70 |
| 91 namespace base { | 71 namespace base { |
| 92 class Time; | 72 class Time; |
| 93 class TimeDelta; | 73 class TimeDelta; |
| (...skipping 1105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1199 ReplyParam p(a, b, c, d, e); | 1179 ReplyParam p(a, b, c, d, e); |
| 1200 WriteParam(reply, p); | 1180 WriteParam(reply, p); |
| 1201 } | 1181 } |
| 1202 }; | 1182 }; |
| 1203 | 1183 |
| 1204 //----------------------------------------------------------------------------- | 1184 //----------------------------------------------------------------------------- |
| 1205 | 1185 |
| 1206 } // namespace IPC | 1186 } // namespace IPC |
| 1207 | 1187 |
| 1208 #endif // IPC_IPC_MESSAGE_UTILS_H_ | 1188 #endif // IPC_IPC_MESSAGE_UTILS_H_ |
| OLD | NEW |