| 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 // wallet::WalletClientDelegate implementation. | 198 // wallet::WalletClientDelegate implementation. |
| 199 virtual const AutofillMetrics& GetMetricLogger() const OVERRIDE; | 199 virtual const AutofillMetrics& GetMetricLogger() const OVERRIDE; |
| 200 virtual DialogType GetDialogType() const OVERRIDE; | 200 virtual DialogType GetDialogType() const OVERRIDE; |
| 201 virtual std::string GetRiskData() const OVERRIDE; | 201 virtual std::string GetRiskData() const OVERRIDE; |
| 202 virtual void OnDidAcceptLegalDocuments() OVERRIDE; | 202 virtual void OnDidAcceptLegalDocuments() OVERRIDE; |
| 203 virtual void OnDidAuthenticateInstrument(bool success) OVERRIDE; | 203 virtual void OnDidAuthenticateInstrument(bool success) OVERRIDE; |
| 204 virtual void OnDidGetFullWallet( | 204 virtual void OnDidGetFullWallet( |
| 205 scoped_ptr<wallet::FullWallet> full_wallet) OVERRIDE; | 205 scoped_ptr<wallet::FullWallet> full_wallet) OVERRIDE; |
| 206 virtual void OnDidGetWalletItems( | 206 virtual void OnDidGetWalletItems( |
| 207 scoped_ptr<wallet::WalletItems> wallet_items) OVERRIDE; | 207 scoped_ptr<wallet::WalletItems> wallet_items) OVERRIDE; |
| 208 virtual void OnDidSaveAddress( | 208 virtual void OnDidSaveToWallet( |
| 209 const std::string& address_id, | |
| 210 const std::vector<wallet::RequiredAction>& required_actions, | |
| 211 const std::vector<wallet::FormFieldError>& form_field_errors) OVERRIDE; | |
| 212 virtual void OnDidSaveInstrument( | |
| 213 const std::string& instrument_id, | |
| 214 const std::vector<wallet::RequiredAction>& required_actions, | |
| 215 const std::vector<wallet::FormFieldError>& form_field_errors) OVERRIDE; | |
| 216 virtual void OnDidSaveInstrumentAndAddress( | |
| 217 const std::string& instrument_id, | 209 const std::string& instrument_id, |
| 218 const std::string& address_id, | 210 const std::string& address_id, |
| 219 const std::vector<wallet::RequiredAction>& required_actions, | 211 const std::vector<wallet::RequiredAction>& required_actions, |
| 220 const std::vector<wallet::FormFieldError>& form_field_errors) OVERRIDE; | 212 const std::vector<wallet::FormFieldError>& form_field_errors) OVERRIDE; |
| 221 virtual void OnDidUpdateAddress( | |
| 222 const std::string& address_id, | |
| 223 const std::vector<wallet::RequiredAction>& required_actions, | |
| 224 const std::vector<wallet::FormFieldError>& form_field_errors) OVERRIDE; | |
| 225 virtual void OnDidUpdateInstrument( | |
| 226 const std::string& instrument_id, | |
| 227 const std::vector<wallet::RequiredAction>& required_actions, | |
| 228 const std::vector<wallet::FormFieldError>& form_field_errors) OVERRIDE; | |
| 229 virtual void OnWalletError( | 213 virtual void OnWalletError( |
| 230 wallet::WalletClient::ErrorType error_type) OVERRIDE; | 214 wallet::WalletClient::ErrorType error_type) OVERRIDE; |
| 231 | 215 |
| 232 // PersonalDataManagerObserver implementation. | 216 // PersonalDataManagerObserver implementation. |
| 233 virtual void OnPersonalDataChanged() OVERRIDE; | 217 virtual void OnPersonalDataChanged() OVERRIDE; |
| 234 | 218 |
| 235 // AccountChooserModelDelegate implementation. | 219 // AccountChooserModelDelegate implementation. |
| 236 virtual void AccountChoiceChanged() OVERRIDE; | 220 virtual void AccountChoiceChanged() OVERRIDE; |
| 237 virtual void UpdateAccountChooserView() OVERRIDE; | 221 virtual void UpdateAccountChooserView() OVERRIDE; |
| 238 | 222 |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 void AcceptLegalDocuments(); | 444 void AcceptLegalDocuments(); |
| 461 | 445 |
| 462 // Start the submit proccess to interact with Online Wallet (might do various | 446 // Start the submit proccess to interact with Online Wallet (might do various |
| 463 // things like accept documents, save details, update details, respond to | 447 // things like accept documents, save details, update details, respond to |
| 464 // required actions, etc.). | 448 // required actions, etc.). |
| 465 void SubmitWithWallet(); | 449 void SubmitWithWallet(); |
| 466 | 450 |
| 467 // Creates an instrument based on |views_|' contents. | 451 // Creates an instrument based on |views_|' contents. |
| 468 scoped_ptr<wallet::Instrument> CreateTransientInstrument(); | 452 scoped_ptr<wallet::Instrument> CreateTransientInstrument(); |
| 469 | 453 |
| 470 // Creates an update request based on |instrument|. May return NULL. | |
| 471 scoped_ptr<wallet::WalletClient::UpdateInstrumentRequest> | |
| 472 CreateUpdateInstrumentRequest(const wallet::Instrument* instrument, | |
| 473 const std::string& instrument_id); | |
| 474 | |
| 475 // Creates an address based on the contents of |view_|. | 454 // Creates an address based on the contents of |view_|. |
| 476 scoped_ptr<wallet::Address> CreateTransientAddress(); | 455 scoped_ptr<wallet::Address> CreateTransientAddress(); |
| 477 | 456 |
| 478 // Gets a full wallet from Online Wallet so the user can purchase something. | 457 // Gets a full wallet from Online Wallet so the user can purchase something. |
| 479 // This information is decoded to reveal a fronting (proxy) card. | 458 // This information is decoded to reveal a fronting (proxy) card. |
| 480 void GetFullWallet(); | 459 void GetFullWallet(); |
| 481 | 460 |
| 482 // Calls |GetFullWallet()| if the required members (|risk_data_|, | 461 // Calls |GetFullWallet()| if the required members (|risk_data_|, |
| 483 // |active_instrument_id_|, and |active_address_id_|) are populated. | 462 // |active_instrument_id_|, and |active_address_id_|) are populated. |
| 484 void GetFullWalletIfReady(); | 463 void GetFullWalletIfReady(); |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 // State of steps in the current Autocheckout flow, or empty if not an | 661 // State of steps in the current Autocheckout flow, or empty if not an |
| 683 // Autocheckout use case. | 662 // Autocheckout use case. |
| 684 std::vector<DialogAutocheckoutStep> steps_; | 663 std::vector<DialogAutocheckoutStep> steps_; |
| 685 | 664 |
| 686 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 665 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
| 687 }; | 666 }; |
| 688 | 667 |
| 689 } // namespace autofill | 668 } // namespace autofill |
| 690 | 669 |
| 691 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 670 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
| OLD | NEW |