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

Unified Diff: chrome/browser/autofill/autofill_scanner.h

Issue 7014011: Change heuristic regex and order to match grabber-continental. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autofill/autofill_scanner.h
diff --git a/chrome/browser/autofill/autofill_scanner.h b/chrome/browser/autofill/autofill_scanner.h
index e8c1f569bb940f60505c7ae351cbe4801f26ac14..7fc8f309b71b49dc76ab104e02f208f77d29b592 100644
--- a/chrome/browser/autofill/autofill_scanner.h
+++ b/chrome/browser/autofill/autofill_scanner.h
@@ -31,9 +31,14 @@ class AutofillScanner {
// Returns the most recently saved cursor -- see also |SaveCursor()|.
void Rewind();
+ // Returns the specified |index| saved cursor. |index| must be the return
+ // value of |SaveCursor()|.
+ void RewindTo(size_t position);
+
// Saves the current cursor position. Multiple cursor positions can be saved,
- // with stack ordering semantics. See also |Rewind()|.
- void SaveCursor();
+ // with stack ordering semantics. Returns the saved cursor position.
+ // See also |Rewind()|.
+ size_t SaveCursor();
private:
// Indicates the current position in the stream, represented as a vector.

Powered by Google App Engine
This is Rietveld 408576698