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

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

Issue 7066043: Cache Autofill heuristics regexes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 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 CHROME_BROWSER_AUTOFILL_AUTOFILL_SCANNER_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_SCANNER_H_
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_SCANNER_H_ 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_SCANNER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 // A stack of saved positions in the stream. 43 // A stack of saved positions in the stream.
44 std::vector<std::vector<const AutofillField*>::const_iterator> saved_cursors_; 44 std::vector<std::vector<const AutofillField*>::const_iterator> saved_cursors_;
45 45
46 // The past-the-end pointer for the stream. 46 // The past-the-end pointer for the stream.
47 const std::vector<const AutofillField*>::const_iterator end_; 47 const std::vector<const AutofillField*>::const_iterator end_;
48 48
49 DISALLOW_COPY_AND_ASSIGN(AutofillScanner); 49 DISALLOW_COPY_AND_ASSIGN(AutofillScanner);
50 }; 50 };
51 51
52 // Parsing utilities.
53 namespace autofill {
54
55 // Case-insensitive regular expression matching. Returns true if |pattern| is
56 // found in |input|.
57 bool MatchString(const string16& input, const string16& pattern);
58
59 } // namespace autofill
60
61 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_SCANNER_H_ 52 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_SCANNER_H_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_regexes.cc ('k') | chrome/browser/autofill/autofill_scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698