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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 base::Callback<void(const FormStructure*)> callback_; | 365 base::Callback<void(const FormStructure*)> callback_; |
366 | 366 |
367 // The AccountChooserModel acts as the MenuModel for the account chooser, | 367 // The AccountChooserModel acts as the MenuModel for the account chooser, |
368 // and also tracks which data source the dialog is using. | 368 // and also tracks which data source the dialog is using. |
369 AccountChooserModel account_chooser_model_; | 369 AccountChooserModel account_chooser_model_; |
370 | 370 |
371 // The sign-in helper to fetch the user info and perform passive sign-in. | 371 // 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. | 372 // The helper is set only during fetch/sign-in, and NULL otherwise. |
373 scoped_ptr<wallet::WalletSigninHelper> signin_helper_; | 373 scoped_ptr<wallet::WalletSigninHelper> signin_helper_; |
374 | 374 |
375 // The user account name (email). | |
376 // Valid only if PayingWithWallet() and SigninState() == SIGNED_IN. | |
377 // Set whenever the sign-in helper fetches the user info. | |
378 // TODO(aruslan): this should be removed (AccountChooser should deal with it). | |
379 std::string current_username_; | |
380 | |
381 // A client to talk to the Online Wallet API. | 375 // A client to talk to the Online Wallet API. |
382 wallet::WalletClient wallet_client_; | 376 wallet::WalletClient wallet_client_; |
383 | 377 |
384 // Recently received items retrieved via |wallet_client_|. | 378 // Recently received items retrieved via |wallet_client_|. |
385 scoped_ptr<wallet::WalletItems> wallet_items_; | 379 scoped_ptr<wallet::WalletItems> wallet_items_; |
386 scoped_ptr<wallet::FullWallet> full_wallet_; | 380 scoped_ptr<wallet::FullWallet> full_wallet_; |
387 | 381 |
388 // Used to remember the state of Wallet comboboxes when Submit was clicked. | 382 // Used to remember the state of Wallet comboboxes when Submit was clicked. |
389 std::string active_instrument_id_; | 383 std::string active_instrument_id_; |
390 std::string active_address_id_; | 384 std::string active_address_id_; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 | 443 |
450 // Whether or not there was an error in the Autocheckout flow. | 444 // Whether or not there was an error in the Autocheckout flow. |
451 bool had_autocheckout_error_; | 445 bool had_autocheckout_error_; |
452 | 446 |
453 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 447 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
454 }; | 448 }; |
455 | 449 |
456 } // namespace autofill | 450 } // namespace autofill |
457 | 451 |
458 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 452 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
OLD | NEW |