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

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

Issue 13928035: WIP Component build of autofill Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make windows compiling Created 7 years, 8 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) 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 COMPONENTS_AUTOFILL_BROWSER_FORM_STRUCTURE_H_ 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_FORM_STRUCTURE_H_
6 #define COMPONENTS_AUTOFILL_BROWSER_FORM_STRUCTURE_H_ 6 #define COMPONENTS_AUTOFILL_BROWSER_FORM_STRUCTURE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/scoped_vector.h" 13 #include "base/memory/scoped_vector.h"
14 #include "components/autofill/browser/autofill_field.h" 14 #include "components/autofill/browser/autofill_field.h"
15 #include "components/autofill/browser/autofill_type.h" 15 #include "components/autofill/browser/autofill_type.h"
16 #include "components/autofill/browser/field_types.h" 16 #include "components/autofill/browser/field_types.h"
17 #include "components/autofill/common/autofill_export.h"
17 #include "components/autofill/common/web_element_descriptor.h" 18 #include "components/autofill/common/web_element_descriptor.h"
18 #include "googleurl/src/gurl.h" 19 #include "googleurl/src/gurl.h"
19 20
20 enum RequestMethod { 21 enum RequestMethod {
21 GET, 22 GET,
22 POST 23 POST
23 }; 24 };
24 25
25 enum UploadRequired { 26 enum UploadRequired {
26 UPLOAD_NOT_REQUIRED, 27 UPLOAD_NOT_REQUIRED,
(...skipping 12 matching lines...) Expand all
39 namespace autofill { 40 namespace autofill {
40 41
41 class AutofillMetrics; 42 class AutofillMetrics;
42 43
43 struct AutocheckoutPageMetaData; 44 struct AutocheckoutPageMetaData;
44 struct FormData; 45 struct FormData;
45 struct FormDataPredictions; 46 struct FormDataPredictions;
46 47
47 // FormStructure stores a single HTML form together with the values entered 48 // FormStructure stores a single HTML form together with the values entered
48 // in the fields along with additional information needed by Autofill. 49 // in the fields along with additional information needed by Autofill.
49 class FormStructure { 50 class AUTOFILL_EXPORT FormStructure {
50 public: 51 public:
51 FormStructure(const FormData& form, 52 FormStructure(const FormData& form,
52 const std::string& autocheckout_url_prefix); 53 const std::string& autocheckout_url_prefix);
53 virtual ~FormStructure(); 54 virtual ~FormStructure();
54 55
55 // Runs several heuristics against the form fields to determine their possible 56 // Runs several heuristics against the form fields to determine their possible
56 // types. 57 // types.
57 void DetermineHeuristicTypes(const AutofillMetrics& metric_logger); 58 void DetermineHeuristicTypes(const AutofillMetrics& metric_logger);
58 59
59 // Encodes the XML upload request from this FormStructure. 60 // Encodes the XML upload request from this FormStructure.
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 251
251 // Whether or not this form was filled by Autocheckout. 252 // Whether or not this form was filled by Autocheckout.
252 bool filled_by_autocheckout_; 253 bool filled_by_autocheckout_;
253 254
254 DISALLOW_COPY_AND_ASSIGN(FormStructure); 255 DISALLOW_COPY_AND_ASSIGN(FormStructure);
255 }; 256 };
256 257
257 } // namespace autofill 258 } // namespace autofill
258 259
259 #endif // COMPONENTS_AUTOFILL_BROWSER_FORM_STRUCTURE_H_ 260 #endif // COMPONENTS_AUTOFILL_BROWSER_FORM_STRUCTURE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698