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

Side by Side Diff: components/autofill/core/browser/form_structure.h

Issue 23857010: Revert "Revert 223907 "[password generation] Upload possible account cre..."" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_STRUCTURE_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_STRUCTURE_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_STRUCTURE_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_STRUCTURE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // Used for iterating over the fields. 146 // Used for iterating over the fields.
147 std::vector<AutofillField*>::const_iterator begin() const { 147 std::vector<AutofillField*>::const_iterator begin() const {
148 return fields_.begin(); 148 return fields_.begin();
149 } 149 }
150 std::vector<AutofillField*>::const_iterator end() const { 150 std::vector<AutofillField*>::const_iterator end() const {
151 return fields_.end(); 151 return fields_.end();
152 } 152 }
153 153
154 const GURL& source_url() const { return source_url_; } 154 const GURL& source_url() const { return source_url_; }
155 155
156 void set_upload_required(UploadRequired required) {
157 upload_required_ = required;
158 }
156 UploadRequired upload_required() const { return upload_required_; } 159 UploadRequired upload_required() const { return upload_required_; }
157 160
158 virtual std::string server_experiment_id() const; 161 virtual std::string server_experiment_id() const;
159 162
160 // Returns a FormData containing the data this form structure knows about. 163 // Returns a FormData containing the data this form structure knows about.
161 // |user_submitted| is currently always false. 164 // |user_submitted| is currently always false.
162 FormData ToFormData() const; 165 FormData ToFormData() const;
163 166
164 bool operator==(const FormData& form) const; 167 bool operator==(const FormData& form) const;
165 bool operator!=(const FormData& form) const; 168 bool operator!=(const FormData& form) const;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 // Whether the form includes any field types explicitly specified by the site 237 // Whether the form includes any field types explicitly specified by the site
235 // author, via the |autocompletetype| attribute. 238 // author, via the |autocompletetype| attribute.
236 bool has_author_specified_types_; 239 bool has_author_specified_types_;
237 240
238 DISALLOW_COPY_AND_ASSIGN(FormStructure); 241 DISALLOW_COPY_AND_ASSIGN(FormStructure);
239 }; 242 };
240 243
241 } // namespace autofill 244 } // namespace autofill
242 245
243 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_STRUCTURE_H_ 246 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_STRUCTURE_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_manager.cc ('k') | components/autofill/core/common/autofill_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698