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

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: Rebasing again... 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
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 virtual const AutofillMetrics& GetMetricLogger() const OVERRIDE; 205 virtual const AutofillMetrics& GetMetricLogger() const OVERRIDE;
206 virtual DialogType GetDialogType() const OVERRIDE; 206 virtual DialogType GetDialogType() const OVERRIDE;
207 virtual std::string GetRiskData() const OVERRIDE; 207 virtual std::string GetRiskData() const OVERRIDE;
208 virtual std::string GetWalletCookieValue() const OVERRIDE; 208 virtual std::string GetWalletCookieValue() const OVERRIDE;
209 virtual void OnDidAcceptLegalDocuments() OVERRIDE; 209 virtual void OnDidAcceptLegalDocuments() OVERRIDE;
210 virtual void OnDidAuthenticateInstrument(bool success) OVERRIDE; 210 virtual void OnDidAuthenticateInstrument(bool success) OVERRIDE;
211 virtual void OnDidGetFullWallet( 211 virtual void OnDidGetFullWallet(
212 scoped_ptr<wallet::FullWallet> full_wallet) OVERRIDE; 212 scoped_ptr<wallet::FullWallet> full_wallet) OVERRIDE;
213 virtual void OnDidGetWalletItems( 213 virtual void OnDidGetWalletItems(
214 scoped_ptr<wallet::WalletItems> wallet_items) OVERRIDE; 214 scoped_ptr<wallet::WalletItems> wallet_items) OVERRIDE;
215 virtual void OnDidSaveAddress( 215 virtual void OnDidSaveToWallet(
216 const std::string& address_id,
217 const std::vector<wallet::RequiredAction>& required_actions,
218 const std::vector<wallet::FormFieldError>& form_field_errors) OVERRIDE;
219 virtual void OnDidSaveInstrument(
220 const std::string& instrument_id,
221 const std::vector<wallet::RequiredAction>& required_actions,
222 const std::vector<wallet::FormFieldError>& form_field_errors) OVERRIDE;
223 virtual void OnDidSaveInstrumentAndAddress(
224 const std::string& instrument_id, 216 const std::string& instrument_id,
225 const std::string& address_id, 217 const std::string& address_id,
226 const std::vector<wallet::RequiredAction>& required_actions, 218 const std::vector<wallet::RequiredAction>& required_actions,
227 const std::vector<wallet::FormFieldError>& form_field_errors) OVERRIDE; 219 const std::vector<wallet::FormFieldError>& form_field_errors) OVERRIDE;
228 virtual void OnDidUpdateAddress(
229 const std::string& address_id,
230 const std::vector<wallet::RequiredAction>& required_actions,
231 const std::vector<wallet::FormFieldError>& form_field_errors) OVERRIDE;
232 virtual void OnDidUpdateInstrument(
233 const std::string& instrument_id,
234 const std::vector<wallet::RequiredAction>& required_actions,
235 const std::vector<wallet::FormFieldError>& form_field_errors) OVERRIDE;
236 virtual void OnWalletError( 220 virtual void OnWalletError(
237 wallet::WalletClient::ErrorType error_type) OVERRIDE; 221 wallet::WalletClient::ErrorType error_type) OVERRIDE;
238 222
239 // PersonalDataManagerObserver implementation. 223 // PersonalDataManagerObserver implementation.
240 virtual void OnPersonalDataChanged() OVERRIDE; 224 virtual void OnPersonalDataChanged() OVERRIDE;
241 225
242 // AccountChooserModelDelegate implementation. 226 // AccountChooserModelDelegate implementation.
243 virtual void AccountChoiceChanged() OVERRIDE; 227 virtual void AccountChoiceChanged() OVERRIDE;
244 virtual void UpdateAccountChooserView() OVERRIDE; 228 virtual void UpdateAccountChooserView() OVERRIDE;
245 229
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 void AcceptLegalDocuments(); 475 void AcceptLegalDocuments();
492 476
493 // Start the submit proccess to interact with Online Wallet (might do various 477 // Start the submit proccess to interact with Online Wallet (might do various
494 // things like accept documents, save details, update details, respond to 478 // things like accept documents, save details, update details, respond to
495 // required actions, etc.). 479 // required actions, etc.).
496 void SubmitWithWallet(); 480 void SubmitWithWallet();
497 481
498 // Creates an instrument based on |views_|' contents. 482 // Creates an instrument based on |views_|' contents.
499 scoped_ptr<wallet::Instrument> CreateTransientInstrument(); 483 scoped_ptr<wallet::Instrument> CreateTransientInstrument();
500 484
501 // Creates an update request based on |instrument|. May return NULL.
502 scoped_ptr<wallet::WalletClient::UpdateInstrumentRequest>
503 CreateUpdateInstrumentRequest(const wallet::Instrument* instrument,
504 const std::string& instrument_id);
505
506 // Creates an address based on the contents of |view_|. 485 // Creates an address based on the contents of |view_|.
507 scoped_ptr<wallet::Address> CreateTransientAddress(); 486 scoped_ptr<wallet::Address> CreateTransientAddress();
508 487
509 // Gets a full wallet from Online Wallet so the user can purchase something. 488 // Gets a full wallet from Online Wallet so the user can purchase something.
510 // This information is decoded to reveal a fronting (proxy) card. 489 // This information is decoded to reveal a fronting (proxy) card.
511 void GetFullWallet(); 490 void GetFullWallet();
512 491
513 // Calls |GetFullWallet()| if the required members (|risk_data_|,
514 // |active_instrument_id_|, and |active_address_id_|) are populated.
515 void GetFullWalletIfReady();
516
517 // Updates the state of the controller and |view_| based on any required 492 // Updates the state of the controller and |view_| based on any required
518 // actions returned by Save or Update calls to Wallet. 493 // actions returned by Save or Update calls to Wallet.
519 void HandleSaveOrUpdateRequiredActions( 494 void HandleSaveOrUpdateRequiredActions(
520 const std::vector<wallet::RequiredAction>& required_actions); 495 const std::vector<wallet::RequiredAction>& required_actions);
521 496
522 // Whether submission is currently waiting for |action| to be handled. 497 // Whether submission is currently waiting for |action| to be handled.
523 bool IsSubmitPausedOn(wallet::RequiredAction action) const; 498 bool IsSubmitPausedOn(wallet::RequiredAction action) const;
524 499
525 // Called when there's nothing left to accept, update, save, or authenticate 500 // Called when there's nothing left to accept, update, save, or authenticate
526 // in order to fill |form_structure_| and pass data back to the invoking page. 501 // in order to fill |form_structure_| and pass data back to the invoking page.
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 // show a bubble as the dialog closes to confirm a user's new card info was 706 // show a bubble as the dialog closes to confirm a user's new card info was
732 // saved. Never populated while incognito (as nothing's actually saved). 707 // saved. Never populated while incognito (as nothing's actually saved).
733 scoped_ptr<CreditCard> newly_saved_card_; 708 scoped_ptr<CreditCard> newly_saved_card_;
734 709
735 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); 710 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl);
736 }; 711 };
737 712
738 } // namespace autofill 713 } // namespace autofill
739 714
740 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 715 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698