diff options
author | dhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-27 01:47:40 +0000 |
---|---|---|
committer | dhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-27 01:47:40 +0000 |
commit | 2033dcf3938e200d48fc24af83da6e7c1af50712 (patch) | |
tree | 599f949d3f64daab02a0703f08dac7da2691adae /chrome/browser/autofill/autofill_scanner.h | |
parent | 36cf510832b0ebc3d911d74f844b156dfb6315ff (diff) | |
download | chromium_src-2033dcf3938e200d48fc24af83da6e7c1af50712.zip chromium_src-2033dcf3938e200d48fc24af83da6e7c1af50712.tar.gz chromium_src-2033dcf3938e200d48fc24af83da6e7c1af50712.tar.bz2 |
Heuristics for grabber-continental.com.out (multi-pass)
Converts the single-pass strategy of the Autofill heuristics to a multi-pass approach based on the specificity of relative terms. "Email address" over "address" for example.
BUG=76299
TEST=FormStructureBrowserTest.DataDrivenHeuristics with "grabber" test files.
Review URL: http://codereview.chromium.org/6962031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86947 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/autofill_scanner.h')
-rw-r--r-- | chrome/browser/autofill/autofill_scanner.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/autofill/autofill_scanner.h b/chrome/browser/autofill/autofill_scanner.h index e8c1f56..8c582dd 100644 --- a/chrome/browser/autofill/autofill_scanner.h +++ b/chrome/browser/autofill/autofill_scanner.h @@ -15,7 +15,7 @@ class AutofillField; // A helper class for parsing a stream of |AutofillField|'s with lookahead. class AutofillScanner { public: - explicit AutofillScanner(const std::vector<AutofillField*>& fields); + explicit AutofillScanner(const std::vector<const AutofillField*>& fields); ~AutofillScanner(); // Advances the cursor by one step, if possible. @@ -37,13 +37,13 @@ class AutofillScanner { private: // Indicates the current position in the stream, represented as a vector. - std::vector<AutofillField*>::const_iterator cursor_; + std::vector<const AutofillField*>::const_iterator cursor_; // A stack of saved positions in the stream. - std::vector<std::vector<AutofillField*>::const_iterator> saved_cursors_; + std::vector<std::vector<const AutofillField*>::const_iterator> saved_cursors_; // The past-the-end pointer for the stream. - const std::vector<AutofillField*>::const_iterator end_; + const std::vector<const AutofillField*>::const_iterator end_; DISALLOW_COPY_AND_ASSIGN(AutofillScanner); }; |