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

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

Issue 11348273: [autofill] Fill in values on a successful run of interactive autocomplete. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: var rename Created 8 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 std::vector<AutofillField*>::const_iterator end() const { 138 std::vector<AutofillField*>::const_iterator end() const {
139 return fields_.end(); 139 return fields_.end();
140 } 140 }
141 141
142 const GURL& source_url() const { return source_url_; } 142 const GURL& source_url() const { return source_url_; }
143 143
144 UploadRequired upload_required() const { return upload_required_; } 144 UploadRequired upload_required() const { return upload_required_; }
145 145
146 virtual std::string server_experiment_id() const; 146 virtual std::string server_experiment_id() const;
147 147
148 // Returns a FormData containing the data this form structure knows about.
149 // |user_submitted| is currently always false.
150 FormData ToFormData() const;
151
148 bool operator==(const FormData& form) const; 152 bool operator==(const FormData& form) const;
149 bool operator!=(const FormData& form) const; 153 bool operator!=(const FormData& form) const;
150 154
151 private: 155 private:
152 friend class FormStructureTest; 156 friend class FormStructureTest;
153 FRIEND_TEST_ALL_PREFIXES(AutofillDownloadTest, QueryAndUploadTest); 157 FRIEND_TEST_ALL_PREFIXES(AutofillDownloadTest, QueryAndUploadTest);
154 // 64-bit hash of the string - used in FormSignature and unit-tests. 158 // 64-bit hash of the string - used in FormSignature and unit-tests.
155 static std::string Hash64Bit(const std::string& str); 159 static std::string Hash64Bit(const std::string& str);
156 160
157 enum EncodeRequestType { 161 enum EncodeRequestType {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 RequestMethod method_; 209 RequestMethod method_;
206 210
207 // Whether the form includes any field types explicitly specified by the site 211 // Whether the form includes any field types explicitly specified by the site
208 // author, via the |autocompletetype| attribute. 212 // author, via the |autocompletetype| attribute.
209 bool has_author_specified_types_; 213 bool has_author_specified_types_;
210 214
211 DISALLOW_COPY_AND_ASSIGN(FormStructure); 215 DISALLOW_COPY_AND_ASSIGN(FormStructure);
212 }; 216 };
213 217
214 #endif // CHROME_BROWSER_AUTOFILL_FORM_STRUCTURE_H_ 218 #endif // CHROME_BROWSER_AUTOFILL_FORM_STRUCTURE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698