| 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 <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 | 287 |
| 288 // Should be called on the Wallet sign-in error. | 288 // Should be called on the Wallet sign-in error. |
| 289 virtual void OnWalletSigninError(); | 289 virtual void OnWalletSigninError(); |
| 290 | 290 |
| 291 // Whether the information input in this dialog will be securely transmitted | 291 // Whether the information input in this dialog will be securely transmitted |
| 292 // to the requesting site. | 292 // to the requesting site. |
| 293 virtual bool TransmissionWillBeSecure() const; | 293 virtual bool TransmissionWillBeSecure() const; |
| 294 | 294 |
| 295 AutocheckoutState autocheckout_state() const { return autocheckout_state_; } | 295 AutocheckoutState autocheckout_state() const { return autocheckout_state_; } |
| 296 | 296 |
| 297 // Shows a new credit card saved bubble and passes ownership of |new_card| and |
| 298 // |billing_profile| to the bubble. Exposed for testing. |
| 299 virtual void ShowNewCreditCardBubble( |
| 300 scoped_ptr<CreditCard> new_card, |
| 301 scoped_ptr<AutofillProfile> billing_profile); |
| 302 |
| 297 private: | 303 private: |
| 298 // Whether or not the current request wants credit info back. | 304 // Whether or not the current request wants credit info back. |
| 299 bool RequestingCreditCardInfo() const; | 305 bool RequestingCreditCardInfo() const; |
| 300 | 306 |
| 301 // Initializes or updates |suggested_email_| et al. | 307 // Initializes or updates |suggested_email_| et al. |
| 302 void SuggestionsUpdated(); | 308 void SuggestionsUpdated(); |
| 303 | 309 |
| 304 // Whether the user's wallet items have at least one address and instrument. | 310 // Whether the user's wallet items have at least one address and instrument. |
| 305 bool HasCompleteWallet() const; | 311 bool HasCompleteWallet() const; |
| 306 | 312 |
| (...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 713 // show a bubble as the dialog closes to confirm a user's new card info was | 719 // show a bubble as the dialog closes to confirm a user's new card info was |
| 714 // saved. Never populated while incognito (as nothing's actually saved). | 720 // saved. Never populated while incognito (as nothing's actually saved). |
| 715 scoped_ptr<CreditCard> newly_saved_card_; | 721 scoped_ptr<CreditCard> newly_saved_card_; |
| 716 | 722 |
| 717 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 723 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
| 718 }; | 724 }; |
| 719 | 725 |
| 720 } // namespace autofill | 726 } // namespace autofill |
| 721 | 727 |
| 722 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 728 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
| OLD | NEW |