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

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

Issue 11539003: Pop up requestAutocomplete UI when autofill server hints chrome client that it is in a multipage au… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Updated string. Pop the UI only on first page of the flow. Created 8 years 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_xml_parser.h
diff --git a/chrome/browser/autofill/autofill_xml_parser.h b/chrome/browser/autofill/autofill_xml_parser.h
index da3d5bf661a3ebf33a33af49635ad6940cd55cdc..16ae0d08996e443d031ec8a1cd8f3c8bbf47ed97 100644
--- a/chrome/browser/autofill/autofill_xml_parser.h
+++ b/chrome/browser/autofill/autofill_xml_parser.h
@@ -70,6 +70,10 @@ class AutofillQueryXmlParser : public AutofillXmlParser {
UploadRequired* upload_required,
std::string* experiment_id);
+ int GetPageNo() { return page_no_; }
Ilya Sherman 2012/12/13 02:29:23 nit: Please spell out "number". This method shoul
Raman Kakilate 2012/12/13 21:34:34 Done.
+
+ int GetTotalPages() { return total_pages_; }
Ilya Sherman 2012/12/13 02:29:23 nit: This method should be named total_pages()
Raman Kakilate 2012/12/13 21:34:34 Done.
+
private:
// A callback for the beginning of a new <element>, called by Expat.
// |context| is a parsing context used to resolve element/attribute names.
@@ -92,6 +96,12 @@ class AutofillQueryXmlParser : public AutofillXmlParser {
// form is submitted.
UploadRequired* upload_required_;
+ // Page number of present page in multipage autofill flow.
Ilya Sherman 2012/12/13 02:29:23 Why is the XML server responsible for keeping trac
Raman Kakilate 2012/12/13 21:34:34 Idea is show autofill_dialog_controller UI on the
Ilya Sherman 2012/12/13 23:23:18 That all makes sense. What I don't understand is
Raman Kakilate 2013/01/10 00:54:40 Server sending down data for all the possible flow
+ int page_no_;
+
+ // Total number of pages in multipage autofill flow.
+ int total_pages_;
+
// The server experiment to which this query response belongs.
// For the default server implementation, this is empty.
std::string* experiment_id_;

Powered by Google App Engine
This is Rietveld 408576698