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

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_controller_impl.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, 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 public wallet::WalletSigninHelperDelegate, 68 public wallet::WalletSigninHelperDelegate,
69 public PersonalDataManagerObserver, 69 public PersonalDataManagerObserver,
70 public AccountChooserModelDelegate { 70 public AccountChooserModelDelegate {
71 public: 71 public:
72 AutofillDialogControllerImpl( 72 AutofillDialogControllerImpl(
73 content::WebContents* contents, 73 content::WebContents* contents,
74 const FormData& form_structure, 74 const FormData& form_structure,
75 const GURL& source_url, 75 const GURL& source_url,
76 const AutofillMetrics& metric_logger, 76 const AutofillMetrics& metric_logger,
77 const DialogType dialog_type, 77 const DialogType dialog_type,
78 const base::Callback<void(const FormStructure*)>& callback); 78 const base::Callback<void(const FormStructure*,
79 const std::string&)>& callback);
79 virtual ~AutofillDialogControllerImpl(); 80 virtual ~AutofillDialogControllerImpl();
80 81
81 static void RegisterUserPrefs(PrefRegistrySyncable* registry); 82 static void RegisterUserPrefs(PrefRegistrySyncable* registry);
82 83
83 void Show(); 84 void Show();
84 void Hide(); 85 void Hide();
85 86
86 // Updates the progress bar based on the Autocheckout progress. |value| should 87 // Updates the progress bar based on the Autocheckout progress. |value| should
87 // be in [0.0, 1.0]. 88 // be in [0.0, 1.0].
88 void UpdateProgressBar(double value); 89 void UpdateProgressBar(double value);
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 virtual void OnDidSaveAddress( 176 virtual void OnDidSaveAddress(
176 const std::string& address_id, 177 const std::string& address_id,
177 const std::vector<wallet::RequiredAction>& required_actions) OVERRIDE; 178 const std::vector<wallet::RequiredAction>& required_actions) OVERRIDE;
178 virtual void OnDidSaveInstrument( 179 virtual void OnDidSaveInstrument(
179 const std::string& instrument_id, 180 const std::string& instrument_id,
180 const std::vector<wallet::RequiredAction>& required_actions) OVERRIDE; 181 const std::vector<wallet::RequiredAction>& required_actions) OVERRIDE;
181 virtual void OnDidSaveInstrumentAndAddress( 182 virtual void OnDidSaveInstrumentAndAddress(
182 const std::string& instrument_id, 183 const std::string& instrument_id,
183 const std::string& address_id, 184 const std::string& address_id,
184 const std::vector<wallet::RequiredAction>& required_actions) OVERRIDE; 185 const std::vector<wallet::RequiredAction>& required_actions) OVERRIDE;
185 virtual void OnDidSendAutocheckoutStatus() OVERRIDE;
186 virtual void OnDidUpdateAddress( 186 virtual void OnDidUpdateAddress(
187 const std::string& address_id, 187 const std::string& address_id,
188 const std::vector<wallet::RequiredAction>& required_actions) OVERRIDE; 188 const std::vector<wallet::RequiredAction>& required_actions) OVERRIDE;
189 virtual void OnDidUpdateInstrument( 189 virtual void OnDidUpdateInstrument(
190 const std::string& instrument_id, 190 const std::string& instrument_id,
191 const std::vector<wallet::RequiredAction>& required_actions) OVERRIDE; 191 const std::vector<wallet::RequiredAction>& required_actions) OVERRIDE;
192 virtual void OnWalletError( 192 virtual void OnWalletError(
193 wallet::WalletClient::ErrorType error_type) OVERRIDE; 193 wallet::WalletClient::ErrorType error_type) OVERRIDE;
194 virtual void OnMalformedResponse() OVERRIDE; 194 virtual void OnMalformedResponse() OVERRIDE;
195 virtual void OnNetworkError(int response_code) OVERRIDE; 195 virtual void OnNetworkError(int response_code) OVERRIDE;
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 // Whether the URL visible to the user when this dialog was requested to be 354 // Whether the URL visible to the user when this dialog was requested to be
355 // invoked is the same as |source_url_|. 355 // invoked is the same as |source_url_|.
356 bool invoked_from_same_origin_; 356 bool invoked_from_same_origin_;
357 357
358 // The URL of the invoking site. 358 // The URL of the invoking site.
359 GURL source_url_; 359 GURL source_url_;
360 360
361 // The SSL info from the invoking site. 361 // The SSL info from the invoking site.
362 content::SSLStatus ssl_status_; 362 content::SSLStatus ssl_status_;
363 363
364 // The callback via which we return the collected data. 364 // The callback via which we return the collected data and, if Online Wallet
365 base::Callback<void(const FormStructure*)> callback_; 365 // was used, the Google transaction id.
366 base::Callback<void(const FormStructure*, const std::string&)> callback_;
366 367
367 // The AccountChooserModel acts as the MenuModel for the account chooser, 368 // The AccountChooserModel acts as the MenuModel for the account chooser,
368 // and also tracks which data source the dialog is using. 369 // and also tracks which data source the dialog is using.
369 AccountChooserModel account_chooser_model_; 370 AccountChooserModel account_chooser_model_;
370 371
371 // The sign-in helper to fetch the user info and perform passive sign-in. 372 // The sign-in helper to fetch the user info and perform passive sign-in.
372 // The helper is set only during fetch/sign-in, and NULL otherwise. 373 // The helper is set only during fetch/sign-in, and NULL otherwise.
373 scoped_ptr<wallet::WalletSigninHelper> signin_helper_; 374 scoped_ptr<wallet::WalletSigninHelper> signin_helper_;
374 375
375 // The user account name (email). 376 // The user account name (email).
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 450
450 // Whether or not there was an error in the Autocheckout flow. 451 // Whether or not there was an error in the Autocheckout flow.
451 bool had_autocheckout_error_; 452 bool had_autocheckout_error_;
452 453
453 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); 454 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl);
454 }; 455 };
455 456
456 } // namespace autofill 457 } // namespace autofill
457 458
458 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 459 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698