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

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

Issue 23930002: [rAc] Reset the user's selection to the new default when the default Wallet item changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Factor out common functionality Created 7 years, 3 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 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 // The helper is set only during fetch/sign-in, and NULL otherwise. 563 // The helper is set only during fetch/sign-in, and NULL otherwise.
564 scoped_ptr<wallet::WalletSigninHelper> signin_helper_; 564 scoped_ptr<wallet::WalletSigninHelper> signin_helper_;
565 565
566 // A client to talk to the Online Wallet API. 566 // A client to talk to the Online Wallet API.
567 wallet::WalletClient wallet_client_; 567 wallet::WalletClient wallet_client_;
568 568
569 // Recently received items retrieved via |wallet_client_|. 569 // Recently received items retrieved via |wallet_client_|.
570 scoped_ptr<wallet::WalletItems> wallet_items_; 570 scoped_ptr<wallet::WalletItems> wallet_items_;
571 scoped_ptr<wallet::FullWallet> full_wallet_; 571 scoped_ptr<wallet::FullWallet> full_wallet_;
572 572
573 // The last active instrument and shipping address object ids. These 573 // The default active instrument and shipping address object IDs as of the
574 // last time Wallet items were fetched. These variables are only set
575 // (i.e. non-empty) when the Wallet items are being re-fetched.
576 std::string previous_default_instrument_id_;
577 std::string previous_default_shipping_address_id_;
578 // The last active instrument and shipping address object IDs. These
574 // variables are only set (i.e. non-empty) when the Wallet items are being 579 // variables are only set (i.e. non-empty) when the Wallet items are being
575 // re-fetched. 580 // re-fetched.
576 std::string previously_selected_instrument_id_; 581 std::string previously_selected_instrument_id_;
577 std::string previously_selected_shipping_address_id_; 582 std::string previously_selected_shipping_address_id_;
578 583
579 // When the Wallet items were last fetched. 584 // When the Wallet items were last fetched.
580 base::TimeTicks last_wallet_items_fetch_timestamp_; 585 base::TimeTicks last_wallet_items_fetch_timestamp_;
581 586
582 // Local machine signals to pass along on each request to trigger (or 587 // Local machine signals to pass along on each request to trigger (or
583 // discourage) risk challenges; sent if the user is up to date on legal docs. 588 // discourage) risk challenges; sent if the user is up to date on legal docs.
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 // show a bubble as the dialog closes to confirm a user's new card info was 689 // show a bubble as the dialog closes to confirm a user's new card info was
685 // saved. Never populated while incognito (as nothing's actually saved). 690 // saved. Never populated while incognito (as nothing's actually saved).
686 scoped_ptr<CreditCard> newly_saved_card_; 691 scoped_ptr<CreditCard> newly_saved_card_;
687 692
688 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); 693 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl);
689 }; 694 };
690 695
691 } // namespace autofill 696 } // namespace autofill
692 697
693 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 698 #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