Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: chrome/common/render_messages.h

Issue 342032: Remove the element_ member of FormField, as we don't use it and shouldn't be ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/webdata/web_database_unittest.cc ('k') | webkit/glue/form_field.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/webdata/web_database_unittest.cc ('k') | webkit/glue/form_field.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698