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 15 matching lines...) Expand all Loading... |
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 "content/public/browser/notification_observer.h" | 34 #include "content/public/browser/notification_observer.h" |
35 #include "content/public/browser/notification_registrar.h" | 35 #include "content/public/browser/notification_registrar.h" |
| 36 #include "content/public/browser/web_contents_observer.h" |
36 #include "content/public/common/ssl_status.h" | 37 #include "content/public/common/ssl_status.h" |
37 #include "ui/base/models/simple_menu_model.h" | 38 #include "ui/base/models/simple_menu_model.h" |
38 #include "ui/base/ui_base_types.h" | 39 #include "ui/base/ui_base_types.h" |
39 #include "url/gurl.h" | 40 #include "url/gurl.h" |
40 | 41 |
41 class Profile; | 42 class Profile; |
42 | 43 |
43 namespace content { | 44 namespace content { |
44 class WebContents; | 45 class WebContents; |
45 } | 46 } |
(...skipping 16 matching lines...) Expand all Loading... |
62 | 63 |
63 namespace wallet { | 64 namespace wallet { |
64 class WalletSigninHelper; | 65 class WalletSigninHelper; |
65 } | 66 } |
66 | 67 |
67 // This class drives the dialog that appears when a site uses the imperative | 68 // This class drives the dialog that appears when a site uses the imperative |
68 // autocomplete API to fill out a form. | 69 // autocomplete API to fill out a form. |
69 class AutofillDialogControllerImpl : public AutofillDialogController, | 70 class AutofillDialogControllerImpl : public AutofillDialogController, |
70 public AutofillPopupDelegate, | 71 public AutofillPopupDelegate, |
71 public content::NotificationObserver, | 72 public content::NotificationObserver, |
| 73 public content::WebContentsObserver, |
72 public SuggestionsMenuModelDelegate, | 74 public SuggestionsMenuModelDelegate, |
73 public wallet::WalletClientDelegate, | 75 public wallet::WalletClientDelegate, |
74 public wallet::WalletSigninHelperDelegate, | 76 public wallet::WalletSigninHelperDelegate, |
75 public PersonalDataManagerObserver, | 77 public PersonalDataManagerObserver, |
76 public AccountChooserModelDelegate { | 78 public AccountChooserModelDelegate { |
77 public: | 79 public: |
78 virtual ~AutofillDialogControllerImpl(); | 80 virtual ~AutofillDialogControllerImpl(); |
79 | 81 |
80 static base::WeakPtr<AutofillDialogControllerImpl> Create( | 82 static base::WeakPtr<AutofillDialogControllerImpl> Create( |
81 content::WebContents* contents, | 83 content::WebContents* contents, |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 int identifier) OVERRIDE; | 188 int identifier) OVERRIDE; |
187 virtual void RemoveSuggestion(const string16& value, | 189 virtual void RemoveSuggestion(const string16& value, |
188 int identifier) OVERRIDE; | 190 int identifier) OVERRIDE; |
189 virtual void ClearPreviewedForm() OVERRIDE; | 191 virtual void ClearPreviewedForm() OVERRIDE; |
190 | 192 |
191 // content::NotificationObserver implementation. | 193 // content::NotificationObserver implementation. |
192 virtual void Observe(int type, | 194 virtual void Observe(int type, |
193 const content::NotificationSource& source, | 195 const content::NotificationSource& source, |
194 const content::NotificationDetails& details) OVERRIDE; | 196 const content::NotificationDetails& details) OVERRIDE; |
195 | 197 |
| 198 // content::WebContentsObserver implementation. |
| 199 virtual void DidNavigateMainFrame( |
| 200 const content::LoadCommittedDetails& details, |
| 201 const content::FrameNavigateParams& params) OVERRIDE; |
| 202 |
196 // SuggestionsMenuModelDelegate implementation. | 203 // SuggestionsMenuModelDelegate implementation. |
197 virtual void SuggestionItemSelected(SuggestionsMenuModel* model, | 204 virtual void SuggestionItemSelected(SuggestionsMenuModel* model, |
198 size_t index) OVERRIDE; | 205 size_t index) OVERRIDE; |
199 | 206 |
200 // wallet::WalletClientDelegate implementation. | 207 // wallet::WalletClientDelegate implementation. |
201 virtual const AutofillMetrics& GetMetricLogger() const OVERRIDE; | 208 virtual const AutofillMetrics& GetMetricLogger() const OVERRIDE; |
202 virtual DialogType GetDialogType() const OVERRIDE; | 209 virtual DialogType GetDialogType() const OVERRIDE; |
203 virtual std::string GetRiskData() const OVERRIDE; | 210 virtual std::string GetRiskData() const OVERRIDE; |
204 virtual std::string GetWalletCookieValue() const OVERRIDE; | 211 virtual std::string GetWalletCookieValue() const OVERRIDE; |
205 virtual void OnDidAcceptLegalDocuments() OVERRIDE; | 212 virtual void OnDidAcceptLegalDocuments() OVERRIDE; |
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 // The Google Wallet cookie value, set as an authorization header on requests | 718 // The Google Wallet cookie value, set as an authorization header on requests |
712 // to Wallet. | 719 // to Wallet. |
713 std::string wallet_cookie_value_; | 720 std::string wallet_cookie_value_; |
714 | 721 |
715 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 722 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
716 }; | 723 }; |
717 | 724 |
718 } // namespace autofill | 725 } // namespace autofill |
719 | 726 |
720 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 727 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
OLD | NEW |