| Index: chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
|
| diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
|
| index 0d86fa939a3a8d89f3f0832ce6806cddac33e7d6..cf155125fc0d501bdb1693a76b873599cd00abcc 100644
|
| --- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
|
| +++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
|
| @@ -60,16 +60,18 @@ class AutofillDialogControllerImpl : public AutofillDialogController,
|
|
|
| // AutofillDialogController implementation.
|
| virtual string16 DialogTitle() const OVERRIDE;
|
| + virtual string16 AccountChooserText() const OVERRIDE;
|
| virtual string16 EditSuggestionText() const OVERRIDE;
|
| virtual string16 UseBillingForShippingText() const OVERRIDE;
|
| virtual string16 WalletOptionText() const OVERRIDE;
|
| virtual string16 CancelButtonText() const OVERRIDE;
|
| virtual string16 ConfirmButtonText() const OVERRIDE;
|
| - virtual string16 SignInText() const OVERRIDE;
|
| virtual string16 SaveLocallyText() const OVERRIDE;
|
| virtual string16 CancelSignInText() const OVERRIDE;
|
| virtual string16 ProgressBarText() const OVERRIDE;
|
| virtual DialogSignedInState SignedInState() const OVERRIDE;
|
| + virtual bool CanPayWithWallet() const OVERRIDE;
|
| + virtual bool AccountChooserEnabled() const OVERRIDE;
|
| virtual const DetailInputs& RequestedFieldsForSection(DialogSection section)
|
| const OVERRIDE;
|
| virtual ui::ComboboxModel* ComboboxModelForAutofillType(
|
| @@ -144,6 +146,15 @@ class AutofillDialogControllerImpl : public AutofillDialogController,
|
| typedef base::Callback<bool(const DetailInput& input,
|
| const AutofillField& field)> InputFieldComparator;
|
|
|
| + // Refresh wallet items immediately if there's no refresh currently in
|
| + // progress, otherwise wait until the current refresh completes.
|
| + void ScheduleRefreshWalletItems();
|
| +
|
| + // Called when any type of request to Online Wallet completes. |success| is
|
| + // true when there was no network error, the response wasn't malformed, and no
|
| + // Wallet error occurred.
|
| + void WalletRequestCompleted(bool success);
|
| +
|
| // Whether or not the current request wants credit info back.
|
| bool RequestingCreditCardInfo() const;
|
|
|
| @@ -228,6 +239,13 @@ class AutofillDialogControllerImpl : public AutofillDialogController,
|
| // A client to talk to the Online Wallet API.
|
| wallet::WalletClient wallet_client_;
|
|
|
| + // Whether another refresh for WalletItems should be started when the current
|
| + // one is done.
|
| + bool refresh_wallet_items_queued_;
|
| +
|
| + // Whether there has been a wallet error while this dialog has been open.
|
| + bool had_wallet_error_;
|
| +
|
| // The most recently received WalletItems retrieved via |wallet_client_|.
|
| scoped_ptr<wallet::WalletItems> wallet_items_;
|
|
|
|
|