Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(810)

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_controller_impl.h

Issue 17970003: New encryption/escrow endpoints for Wallet (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: No !! Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 void AcceptLegalDocuments(); 461 void AcceptLegalDocuments();
478 462
479 // Start the submit proccess to interact with Online Wallet (might do various 463 // Start the submit proccess to interact with Online Wallet (might do various
480 // things like accept documents, save details, update details, respond to 464 // things like accept documents, save details, update details, respond to
481 // required actions, etc.). 465 // required actions, etc.).
482 void SubmitWithWallet(); 466 void SubmitWithWallet();
483 467
484 // Creates an instrument based on |views_|' contents. 468 // Creates an instrument based on |views_|' contents.
485 scoped_ptr<wallet::Instrument> CreateTransientInstrument(); 469 scoped_ptr<wallet::Instrument> CreateTransientInstrument();
486 470
487 // Creates an update request based on |instrument|. May return NULL.
488 scoped_ptr<wallet::WalletClient::UpdateInstrumentRequest>
489 CreateUpdateInstrumentRequest(const wallet::Instrument* instrument,
490 const std::string& instrument_id);
491
492 // Creates an address based on the contents of |view_|. 471 // Creates an address based on the contents of |view_|.
493 scoped_ptr<wallet::Address> CreateTransientAddress(); 472 scoped_ptr<wallet::Address> CreateTransientAddress();
494 473
495 // Gets a full wallet from Online Wallet so the user can purchase something. 474 // Gets a full wallet from Online Wallet so the user can purchase something.
496 // This information is decoded to reveal a fronting (proxy) card. 475 // This information is decoded to reveal a fronting (proxy) card.
497 void GetFullWallet(); 476 void GetFullWallet();
498 477
499 // Calls |GetFullWallet()| if the required members (|risk_data_|,
500 // |active_instrument_id_|, and |active_address_id_|) are populated.
501 void GetFullWalletIfReady();
502
503 // Updates the state of the controller and |view_| based on any required 478 // Updates the state of the controller and |view_| based on any required
504 // actions returned by Save or Update calls to Wallet. 479 // actions returned by Save or Update calls to Wallet.
505 void HandleSaveOrUpdateRequiredActions( 480 void HandleSaveOrUpdateRequiredActions(
506 const std::vector<wallet::RequiredAction>& required_actions); 481 const std::vector<wallet::RequiredAction>& required_actions);
507 482
508 // Whether submission is currently waiting for |action| to be handled. 483 // Whether submission is currently waiting for |action| to be handled.
509 bool IsSubmitPausedOn(wallet::RequiredAction action) const; 484 bool IsSubmitPausedOn(wallet::RequiredAction action) const;
510 485
511 // Called when there's nothing left to accept, update, save, or authenticate 486 // Called when there's nothing left to accept, update, save, or authenticate
512 // in order to fill |form_structure_| and pass data back to the invoking page. 487 // in order to fill |form_structure_| and pass data back to the invoking page.
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 // State of steps in the current Autocheckout flow, or empty if not an 674 // State of steps in the current Autocheckout flow, or empty if not an
700 // Autocheckout use case. 675 // Autocheckout use case.
701 std::vector<DialogAutocheckoutStep> steps_; 676 std::vector<DialogAutocheckoutStep> steps_;
702 677
703 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); 678 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl);
704 }; 679 };
705 680
706 } // namespace autofill 681 } // namespace autofill
707 682
708 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 683 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698