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 13 matching lines...) Expand all Loading... |
24 #include "components/autofill/content/browser/wallet/wallet_client_delegate.h" | 24 #include "components/autofill/content/browser/wallet/wallet_client_delegate.h" |
25 #include "components/autofill/content/browser/wallet/wallet_items.h" | 25 #include "components/autofill/content/browser/wallet/wallet_items.h" |
26 #include "components/autofill/content/browser/wallet/wallet_signin_helper_delega
te.h" | 26 #include "components/autofill/content/browser/wallet/wallet_signin_helper_delega
te.h" |
27 #include "components/autofill/core/browser/autofill_manager_delegate.h" | 27 #include "components/autofill/core/browser/autofill_manager_delegate.h" |
28 #include "components/autofill/core/browser/autofill_metrics.h" | 28 #include "components/autofill/core/browser/autofill_metrics.h" |
29 #include "components/autofill/core/browser/autofill_popup_delegate.h" | 29 #include "components/autofill/core/browser/autofill_popup_delegate.h" |
30 #include "components/autofill/core/browser/field_types.h" | 30 #include "components/autofill/core/browser/field_types.h" |
31 #include "components/autofill/core/browser/form_structure.h" | 31 #include "components/autofill/core/browser/form_structure.h" |
32 #include "components/autofill/core/browser/personal_data_manager.h" | 32 #include "components/autofill/core/browser/personal_data_manager.h" |
33 #include "components/autofill/core/browser/personal_data_manager_observer.h" | 33 #include "components/autofill/core/browser/personal_data_manager_observer.h" |
| 34 #include "components/autofill/core/browser/validation_downloader.h" |
34 #include "content/public/browser/notification_observer.h" | 35 #include "content/public/browser/notification_observer.h" |
35 #include "content/public/browser/notification_registrar.h" | 36 #include "content/public/browser/notification_registrar.h" |
36 #include "content/public/browser/web_contents_observer.h" | 37 #include "content/public/browser/web_contents_observer.h" |
37 #include "content/public/common/ssl_status.h" | 38 #include "content/public/common/ssl_status.h" |
38 #include "third_party/skia/include/core/SkColor.h" | 39 #include "third_party/skia/include/core/SkColor.h" |
39 #include "ui/base/models/simple_menu_model.h" | 40 #include "ui/base/models/simple_menu_model.h" |
40 #include "ui/base/ui_base_types.h" | 41 #include "ui/base/ui_base_types.h" |
41 #include "ui/gfx/animation/animation_delegate.h" | 42 #include "ui/gfx/animation/animation_delegate.h" |
42 #include "ui/gfx/animation/linear_animation.h" | 43 #include "ui/gfx/animation/linear_animation.h" |
43 #include "url/gurl.h" | 44 #include "url/gurl.h" |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 // and also tracks which data source the dialog is using. | 597 // and also tracks which data source the dialog is using. |
597 scoped_ptr<AccountChooserModel> account_chooser_model_; | 598 scoped_ptr<AccountChooserModel> account_chooser_model_; |
598 | 599 |
599 // The sign-in helper to fetch the user's Wallet cookie and to perform passive | 600 // The sign-in helper to fetch the user's Wallet cookie and to perform passive |
600 // sign-in. The helper is set only during fetch/sign-in, and NULL otherwise. | 601 // sign-in. The helper is set only during fetch/sign-in, and NULL otherwise. |
601 scoped_ptr<wallet::WalletSigninHelper> signin_helper_; | 602 scoped_ptr<wallet::WalletSigninHelper> signin_helper_; |
602 | 603 |
603 // A client to talk to the Online Wallet API. | 604 // A client to talk to the Online Wallet API. |
604 wallet::WalletClient wallet_client_; | 605 wallet::WalletClient wallet_client_; |
605 | 606 |
| 607 // Downloads validation rules for address input. New rules are downloaded when |
| 608 // country is changed. |
| 609 ValidationDownloader validation_downloader_; |
| 610 |
606 // True if |this| has ever called GetWalletItems(). | 611 // True if |this| has ever called GetWalletItems(). |
607 bool wallet_items_requested_; | 612 bool wallet_items_requested_; |
608 | 613 |
609 // True when the user has clicked the "Use Wallet" link and we're waiting to | 614 // True when the user has clicked the "Use Wallet" link and we're waiting to |
610 // figure out whether we need to ask them to actively sign in. | 615 // figure out whether we need to ask them to actively sign in. |
611 bool handling_use_wallet_link_click_; | 616 bool handling_use_wallet_link_click_; |
612 | 617 |
613 // True when the current WalletItems has a passive auth action which was | 618 // True when the current WalletItems has a passive auth action which was |
614 // attempted and failed. | 619 // attempted and failed. |
615 bool passive_failed_; | 620 bool passive_failed_; |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
765 | 770 |
766 // A username string we display in the card scrambling/generated overlay. | 771 // A username string we display in the card scrambling/generated overlay. |
767 base::string16 submitted_cardholder_name_; | 772 base::string16 submitted_cardholder_name_; |
768 | 773 |
769 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 774 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
770 }; | 775 }; |
771 | 776 |
772 } // namespace autofill | 777 } // namespace autofill |
773 | 778 |
774 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 779 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
OLD | NEW |