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

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: 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 FormData* ToFormData() const;
Ilya Sherman 2012/11/28 06:16:39 nit: Please change this signature to: "void ToForm
Dan Beam 2012/11/28 19:59:10 Done.
149
148 bool operator==(const FormData& form) const; 150 bool operator==(const FormData& form) const;
149 bool operator!=(const FormData& form) const; 151 bool operator!=(const FormData& form) const;
150 152
151 private: 153 private:
152 friend class FormStructureTest; 154 friend class FormStructureTest;
153 FRIEND_TEST_ALL_PREFIXES(AutofillDownloadTest, QueryAndUploadTest); 155 FRIEND_TEST_ALL_PREFIXES(AutofillDownloadTest, QueryAndUploadTest);
154 // 64-bit hash of the string - used in FormSignature and unit-tests. 156 // 64-bit hash of the string - used in FormSignature and unit-tests.
155 static std::string Hash64Bit(const std::string& str); 157 static std::string Hash64Bit(const std::string& str);
156 158
157 enum EncodeRequestType { 159 enum EncodeRequestType {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 RequestMethod method_; 207 RequestMethod method_;
206 208
207 // Whether the form includes any field types explicitly specified by the site 209 // Whether the form includes any field types explicitly specified by the site
208 // author, via the |autocompletetype| attribute. 210 // author, via the |autocompletetype| attribute.
209 bool has_author_specified_types_; 211 bool has_author_specified_types_;
210 212
211 DISALLOW_COPY_AND_ASSIGN(FormStructure); 213 DISALLOW_COPY_AND_ASSIGN(FormStructure);
212 }; 214 };
213 215
214 #endif // CHROME_BROWSER_AUTOFILL_FORM_STRUCTURE_H_ 216 #endif // CHROME_BROWSER_AUTOFILL_FORM_STRUCTURE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698