OLD | NEW |
1 // Copyright (c) 2011 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 // Multiply-included message file, no traditional include guard. | 5 // Multiply-included message file, no traditional include guard. |
6 #include <string> | 6 #include <string> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "chrome/common/automation_constants.h" | 11 #include "chrome/common/automation_constants.h" |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 std::vector<Item> items; | 185 std::vector<Item> items; |
186 }; | 186 }; |
187 | 187 |
188 namespace IPC { | 188 namespace IPC { |
189 | 189 |
190 // Traits for ContextMenuModel structure to pack/unpack. | 190 // Traits for ContextMenuModel structure to pack/unpack. |
191 template <> | 191 template <> |
192 struct ParamTraits<ContextMenuModel> { | 192 struct ParamTraits<ContextMenuModel> { |
193 typedef ContextMenuModel param_type; | 193 typedef ContextMenuModel param_type; |
194 static void Write(Message* m, const param_type& p); | 194 static void Write(Message* m, const param_type& p); |
195 static bool Read(const Message* m, void** iter, param_type* p); | 195 static bool Read(const Message* m, PickleIterator* iter, param_type* p); |
196 static void Log(const param_type& p, std::string* l); | 196 static void Log(const param_type& p, std::string* l); |
197 }; | 197 }; |
198 | 198 |
199 } // namespace IPC | 199 } // namespace IPC |
200 | 200 |
201 #endif // CHROME_COMMON_AUTOMATION_MESSAGES_H_ | 201 #endif // CHROME_COMMON_AUTOMATION_MESSAGES_H_ |
202 | 202 |
203 // Keep this internal message file unchanged to preserve line numbering | 203 // Keep this internal message file unchanged to preserve line numbering |
204 // (and hence the dubious __LINE__-based message numberings) across versions. | 204 // (and hence the dubious __LINE__-based message numberings) across versions. |
205 #include "chrome/common/automation_messages_internal.h" | 205 #include "chrome/common/automation_messages_internal.h" |
OLD | NEW |