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

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

Issue 12457033: Implements SendAutocheckoutStatus API calls for stats tracking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing unit tests Created 7 years, 9 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 | « chrome/chrome_browser.gypi ('k') | components/autofill/browser/autocheckout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/browser/autocheckout_manager.h
diff --git a/components/autofill/browser/autocheckout_manager.h b/components/autofill/browser/autocheckout_manager.h
index 57a58e8feae07f9427e6181249b5e6cd3e526073..ffe2b2e504f0997924366100a5ab460ad4dddfbe 100644
--- a/components/autofill/browser/autocheckout_manager.h
+++ b/components/autofill/browser/autocheckout_manager.h
@@ -11,6 +11,7 @@
#include "base/memory/weak_ptr.h"
#include "base/string16.h"
#include "components/autofill/browser/autocheckout_page_meta_data.h"
+#include "components/autofill/common/autocheckout_status.h"
#include "ui/gfx/native_widget_types.h"
class AutofillField;
@@ -42,6 +43,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);
+
// Sets |page_meta_data_| with the meta data for the current page.
void OnLoadedPageMetaData(
scoped_ptr<AutocheckoutPageMetaData> page_meta_data);
@@ -84,7 +89,11 @@ class AutocheckoutManager {
bool IsInAutofillableFlow() const;
// Callback called from AutofillDialogController on filling up the UI form.
- void ReturnAutocheckoutData(const FormStructure* result);
+ void ReturnAutocheckoutData(const FormStructure* result,
+ const std::string& google_transaction_id);
+
+ // Sends |status| to Online Wallet using AutocheckoutRequestManager.
+ void SendAutocheckoutStatus(AutocheckoutStatus status);
// Sets value of form field data |field_to_fill| based on the Autofill
// field type specified by |field|.
@@ -115,6 +124,8 @@ class AutocheckoutManager {
// Whether or not the user is in an Autocheckout flow.
bool in_autocheckout_flow_;
+ std::string google_transaction_id_;
+
base::WeakPtrFactory<AutocheckoutManager> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(AutocheckoutManager);
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | components/autofill/browser/autocheckout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698