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

Unified Diff: components/autofill/content/browser/autocheckout_manager.h

Issue 18179015: Send IPC from renderer to browser on each Autocheckout page completion (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nits Created 7 years, 5 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
« no previous file with comments | « no previous file | components/autofill/content/browser/autocheckout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/content/browser/autocheckout_manager.h
diff --git a/components/autofill/content/browser/autocheckout_manager.h b/components/autofill/content/browser/autocheckout_manager.h
index e28304789084cb331506dad5f3208ad43492d229..9c98172a6286f07fe2dae542c3a288b534fac249 100644
--- a/components/autofill/content/browser/autocheckout_manager.h
+++ b/components/autofill/content/browser/autocheckout_manager.h
@@ -49,9 +49,10 @@ class AutocheckoutManager {
// gathered from the requestAutocomplete dialog.
void FillForms();
- // Called when clicking a proceed element in an Autocheckout flow fails.
- // |status| is the reason for the failure.
- void OnClickFailed(AutocheckoutStatus status);
+ // Called to signal that the renderer has completed processing a page in the
+ // Autocheckout flow. |status| is the reason for the failure, or |SUCCESS| if
+ // there were no errors.
+ void OnAutocheckoutPageCompleted(AutocheckoutStatus status);
// Sets |page_meta_data_| with the meta data for the current page.
void OnLoadedPageMetaData(
@@ -128,6 +129,10 @@ class AutocheckoutManager {
// towards |page_number|.
void RecordTimeTaken(int page_number);
+ // Terminate the Autocheckout flow and send Autocheckout status to Wallet
+ // server.
+ void EndAutocheckout(AutocheckoutStatus status);
+
AutofillManager* autofill_manager_; // WEAK; owns us
// Credit card verification code.
« no previous file with comments | « no previous file | components/autofill/content/browser/autocheckout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698