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

Side by Side Diff: chrome/browser/autofill/form_structure.h

Issue 6213002: Propagate correct data to the Toolbar servers (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months 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
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_BROWSER_AUTOFILL_FORM_STRUCTURE_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_FORM_STRUCTURE_H_
6 #define CHROME_BROWSER_AUTOFILL_FORM_STRUCTURE_H_ 6 #define CHROME_BROWSER_AUTOFILL_FORM_STRUCTURE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 23 matching lines...) Expand all
34 class AutoFillMetrics; 34 class AutoFillMetrics;
35 35
36 // FormStructure stores a single HTML form together with the values entered 36 // FormStructure stores a single HTML form together with the values entered
37 // in the fields along with additional information needed by AutoFill. 37 // in the fields along with additional information needed by AutoFill.
38 class FormStructure { 38 class FormStructure {
39 public: 39 public:
40 explicit FormStructure(const webkit_glue::FormData& form); 40 explicit FormStructure(const webkit_glue::FormData& form);
41 virtual ~FormStructure(); 41 virtual ~FormStructure();
42 42
43 // Encodes the XML upload request from this FormStructure. 43 // Encodes the XML upload request from this FormStructure.
44 bool EncodeUploadRequest(bool auto_fill_used, 44 bool EncodeUploadRequest(bool auto_fill_used, char const* present_data,
45 std::string* encoded_xml) const; 45 std::string* encoded_xml) const;
46 46
47 // Encodes the XML query request for the set of forms. 47 // Encodes the XML query request for the set of forms.
48 // All fields are returned in one XML. For example, there are three forms, 48 // All fields are returned in one XML. For example, there are three forms,
49 // with 2, 4, and 3 fields. The returned XML would have type info for 9 49 // with 2, 4, and 3 fields. The returned XML would have type info for 9
50 // fields, first two of which would be for the first form, next 4 for the 50 // fields, first two of which would be for the first form, next 4 for the
51 // second, and the rest is for the third. 51 // second, and the rest is for the third.
52 static bool EncodeQueryRequest(const ScopedVector<FormStructure>& forms, 52 static bool EncodeQueryRequest(const ScopedVector<FormStructure>& forms,
53 std::vector<std::string>* encoded_signatures, 53 std::vector<std::string>* encoded_signatures,
54 std::string* encoded_xml); 54 std::string* encoded_xml);
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // character. E.g.: "&form_input1_name&form_input2_name&...&form_inputN_name" 153 // character. E.g.: "&form_input1_name&form_input2_name&...&form_inputN_name"
154 std::string form_signature_field_names_; 154 std::string form_signature_field_names_;
155 155
156 // GET or POST. 156 // GET or POST.
157 RequestMethod method_; 157 RequestMethod method_;
158 158
159 DISALLOW_COPY_AND_ASSIGN(FormStructure); 159 DISALLOW_COPY_AND_ASSIGN(FormStructure);
160 }; 160 };
161 161
162 #endif // CHROME_BROWSER_AUTOFILL_FORM_STRUCTURE_H_ 162 #endif // CHROME_BROWSER_AUTOFILL_FORM_STRUCTURE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698