| OLD | NEW |
| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 public wallet::WalletClientDelegate, | 62 public wallet::WalletClientDelegate, |
| 63 public PersonalDataManagerObserver, | 63 public PersonalDataManagerObserver, |
| 64 public AccountChooserModelDelegate { | 64 public AccountChooserModelDelegate { |
| 65 public: | 65 public: |
| 66 AutofillDialogControllerImpl( | 66 AutofillDialogControllerImpl( |
| 67 content::WebContents* contents, | 67 content::WebContents* contents, |
| 68 const FormData& form_structure, | 68 const FormData& form_structure, |
| 69 const GURL& source_url, | 69 const GURL& source_url, |
| 70 const AutofillMetrics& metric_logger, | 70 const AutofillMetrics& metric_logger, |
| 71 const DialogType dialog_type, | 71 const DialogType dialog_type, |
| 72 const base::Callback<void(const FormStructure*)>& callback); | 72 const base::Callback<void(const FormStructure*, |
| 73 const std::string&)>& callback); |
| 73 virtual ~AutofillDialogControllerImpl(); | 74 virtual ~AutofillDialogControllerImpl(); |
| 74 | 75 |
| 75 static void RegisterUserPrefs(PrefRegistrySyncable* registry); | 76 static void RegisterUserPrefs(PrefRegistrySyncable* registry); |
| 76 | 77 |
| 77 void Show(); | 78 void Show(); |
| 78 void Hide(); | 79 void Hide(); |
| 79 | 80 |
| 80 // Updates the progress bar based on the Autocheckout progress. |value| should | 81 // Updates the progress bar based on the Autocheckout progress. |value| should |
| 81 // be in [0.0, 1.0]. | 82 // be in [0.0, 1.0]. |
| 82 void UpdateProgressBar(double value); | 83 void UpdateProgressBar(double value); |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 // Whether the URL visible to the user when this dialog was requested to be | 325 // Whether the URL visible to the user when this dialog was requested to be |
| 325 // invoked is the same as |source_url_|. | 326 // invoked is the same as |source_url_|. |
| 326 bool invoked_from_same_origin_; | 327 bool invoked_from_same_origin_; |
| 327 | 328 |
| 328 // The URL of the invoking site. | 329 // The URL of the invoking site. |
| 329 GURL source_url_; | 330 GURL source_url_; |
| 330 | 331 |
| 331 // The SSL info from the invoking site. | 332 // The SSL info from the invoking site. |
| 332 content::SSLStatus ssl_status_; | 333 content::SSLStatus ssl_status_; |
| 333 | 334 |
| 334 // The callback via which we return the collected data. | 335 // The callback via which we return the collected data and, if Online Wallet |
| 335 base::Callback<void(const FormStructure*)> callback_; | 336 // was used, the Google transaction id. |
| 337 base::Callback<void(const FormStructure*, const std::string&)> callback_; |
| 336 | 338 |
| 337 // The AccountChooserModel acts as the MenuModel for the account chooser, | 339 // The AccountChooserModel acts as the MenuModel for the account chooser, |
| 338 // and also tracks which data source the dialog is using. | 340 // and also tracks which data source the dialog is using. |
| 339 AccountChooserModel account_chooser_model_; | 341 AccountChooserModel account_chooser_model_; |
| 340 | 342 |
| 341 // A client to talk to the Online Wallet API. | 343 // A client to talk to the Online Wallet API. |
| 342 wallet::WalletClient wallet_client_; | 344 wallet::WalletClient wallet_client_; |
| 343 | 345 |
| 344 // Recently received items retrieved via |wallet_client_|. | 346 // Recently received items retrieved via |wallet_client_|. |
| 345 scoped_ptr<wallet::WalletItems> wallet_items_; | 347 scoped_ptr<wallet::WalletItems> wallet_items_; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 | 411 |
| 410 // Whether or not there was an error in the Autocheckout flow. | 412 // Whether or not there was an error in the Autocheckout flow. |
| 411 bool had_autocheckout_error_; | 413 bool had_autocheckout_error_; |
| 412 | 414 |
| 413 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 415 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
| 414 }; | 416 }; |
| 415 | 417 |
| 416 } // namespace autofill | 418 } // namespace autofill |
| 417 | 419 |
| 418 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 420 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
| OLD | NEW |