| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_RENDER_MESSAGES_H_ | 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ |
| 6 #define CHROME_COMMON_RENDER_MESSAGES_H_ | 6 #define CHROME_COMMON_RENDER_MESSAGES_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 748 } | 748 } |
| 749 static bool Read(const Message* m, void** iter, param_type* p) { | 749 static bool Read(const Message* m, void** iter, param_type* p) { |
| 750 bool result = true; | 750 bool result = true; |
| 751 size_t elements_size = 0; | 751 size_t elements_size = 0; |
| 752 result = result && ReadParam(m, iter, &elements_size); | 752 result = result && ReadParam(m, iter, &elements_size); |
| 753 p->elements.resize(elements_size); | 753 p->elements.resize(elements_size); |
| 754 for (size_t i = 0; i < elements_size; i++) { | 754 for (size_t i = 0; i < elements_size; i++) { |
| 755 string16 name, value; | 755 string16 name, value; |
| 756 result = result && ReadParam(m, iter, &name); | 756 result = result && ReadParam(m, iter, &name); |
| 757 result = result && ReadParam(m, iter, &value); | 757 result = result && ReadParam(m, iter, &value); |
| 758 p->elements[i] = webkit_glue::FormField(NULL, name, value); | 758 p->elements[i] = webkit_glue::FormField(name, value); |
| 759 } | 759 } |
| 760 return result; | 760 return result; |
| 761 } | 761 } |
| 762 static void Log(const param_type& p, std::wstring* l) { | 762 static void Log(const param_type& p, std::wstring* l) { |
| 763 l->append(L"<FormFieldValues>"); | 763 l->append(L"<FormFieldValues>"); |
| 764 } | 764 } |
| 765 }; | 765 }; |
| 766 | 766 |
| 767 // Traits for ViewHostMsg_FrameNavigate_Params structure to pack/unpack. | 767 // Traits for ViewHostMsg_FrameNavigate_Params structure to pack/unpack. |
| 768 template <> | 768 template <> |
| (...skipping 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2124 } | 2124 } |
| 2125 }; | 2125 }; |
| 2126 | 2126 |
| 2127 } // namespace IPC | 2127 } // namespace IPC |
| 2128 | 2128 |
| 2129 | 2129 |
| 2130 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 2130 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
| 2131 #include "ipc/ipc_message_macros.h" | 2131 #include "ipc/ipc_message_macros.h" |
| 2132 | 2132 |
| 2133 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 2133 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
| OLD | NEW |