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 <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "components/autofill/browser/wallet/wallet_client.h" | 28 #include "components/autofill/browser/wallet/wallet_client.h" |
29 #include "components/autofill/browser/wallet/wallet_client_delegate.h" | 29 #include "components/autofill/browser/wallet/wallet_client_delegate.h" |
30 #include "components/autofill/browser/wallet/wallet_signin_helper_delegate.h" | 30 #include "components/autofill/browser/wallet/wallet_signin_helper_delegate.h" |
31 #include "content/public/browser/notification_observer.h" | 31 #include "content/public/browser/notification_observer.h" |
32 #include "content/public/browser/notification_registrar.h" | 32 #include "content/public/browser/notification_registrar.h" |
33 #include "content/public/common/ssl_status.h" | 33 #include "content/public/common/ssl_status.h" |
34 #include "googleurl/src/gurl.h" | 34 #include "googleurl/src/gurl.h" |
35 #include "ui/base/models/simple_menu_model.h" | 35 #include "ui/base/models/simple_menu_model.h" |
36 #include "ui/base/ui_base_types.h" | 36 #include "ui/base/ui_base_types.h" |
37 | 37 |
38 class FormGroup; | |
39 class Profile; | 38 class Profile; |
40 class PrefRegistrySyncable; | 39 class PrefRegistrySyncable; |
41 | 40 |
42 namespace content { | 41 namespace content { |
43 class WebContents; | 42 class WebContents; |
44 } | 43 } |
45 | 44 |
46 namespace autofill { | 45 namespace autofill { |
47 | 46 |
| 47 class AutofillDataModel; |
48 class AutofillDialogView; | 48 class AutofillDialogView; |
49 class AutofillPopupControllerImpl; | 49 class AutofillPopupControllerImpl; |
50 class DataModelWrapper; | 50 class DataModelWrapper; |
51 | 51 |
52 namespace risk { | 52 namespace risk { |
53 class Fingerprint; | 53 class Fingerprint; |
54 } | 54 } |
55 | 55 |
56 namespace wallet { | 56 namespace wallet { |
57 class WalletSigninHelper; | 57 class WalletSigninHelper; |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 // Fills in |section|-related fields in |output_| according to the state of | 295 // Fills in |section|-related fields in |output_| according to the state of |
296 // |view_|. | 296 // |view_|. |
297 void FillOutputForSection(DialogSection section); | 297 void FillOutputForSection(DialogSection section); |
298 // As above, but uses |compare| to determine whether a DetailInput matches | 298 // As above, but uses |compare| to determine whether a DetailInput matches |
299 // a field. Saves any new Autofill data to the PersonalDataManager. | 299 // a field. Saves any new Autofill data to the PersonalDataManager. |
300 void FillOutputForSectionWithComparator(DialogSection section, | 300 void FillOutputForSectionWithComparator(DialogSection section, |
301 const InputFieldComparator& compare); | 301 const InputFieldComparator& compare); |
302 | 302 |
303 // Fills in |form_structure_| using |form_group|. Utility method for | 303 // Fills in |form_structure_| using |form_group|. Utility method for |
304 // FillOutputForSection. | 304 // FillOutputForSection. |
305 void FillFormStructureForSection(const FormGroup& form_group, | 305 void FillFormStructureForSection(const AutofillDataModel& data_model, |
306 size_t variant, | 306 size_t variant, |
307 DialogSection section, | 307 DialogSection section, |
308 const InputFieldComparator& compare); | 308 const InputFieldComparator& compare); |
309 | 309 |
310 // Sets the CVC result on |form_structure_| to the value in |cvc|. | 310 // Sets the CVC result on |form_structure_| to the value in |cvc|. |
311 void SetCvcResult(const string16& cvc); | 311 void SetCvcResult(const string16& cvc); |
312 | 312 |
313 // Gets the SuggestionsMenuModel for |section|. | 313 // Gets the SuggestionsMenuModel for |section|. |
314 SuggestionsMenuModel* SuggestionsMenuModelForSection(DialogSection section); | 314 SuggestionsMenuModel* SuggestionsMenuModelForSection(DialogSection section); |
315 const SuggestionsMenuModel* SuggestionsMenuModelForSection( | 315 const SuggestionsMenuModel* SuggestionsMenuModelForSection( |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 | 527 |
528 // Whether or not there was an error in the Autocheckout flow. | 528 // Whether or not there was an error in the Autocheckout flow. |
529 bool had_autocheckout_error_; | 529 bool had_autocheckout_error_; |
530 | 530 |
531 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 531 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
532 }; | 532 }; |
533 | 533 |
534 } // namespace autofill | 534 } // namespace autofill |
535 | 535 |
536 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 536 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
OLD | NEW |