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 19 matching lines...) Expand all Loading... |
30 #include "components/autofill/browser/wallet/wallet_client_delegate.h" | 30 #include "components/autofill/browser/wallet/wallet_client_delegate.h" |
31 #include "components/autofill/browser/wallet/wallet_signin_helper_delegate.h" | 31 #include "components/autofill/browser/wallet/wallet_signin_helper_delegate.h" |
32 #include "content/public/browser/notification_observer.h" | 32 #include "content/public/browser/notification_observer.h" |
33 #include "content/public/browser/notification_registrar.h" | 33 #include "content/public/browser/notification_registrar.h" |
34 #include "content/public/common/ssl_status.h" | 34 #include "content/public/common/ssl_status.h" |
35 #include "googleurl/src/gurl.h" | 35 #include "googleurl/src/gurl.h" |
36 #include "ui/base/models/simple_menu_model.h" | 36 #include "ui/base/models/simple_menu_model.h" |
37 #include "ui/base/ui_base_types.h" | 37 #include "ui/base/ui_base_types.h" |
38 | 38 |
39 class Profile; | 39 class Profile; |
40 class PrefRegistrySyncable; | |
41 | 40 |
42 namespace content { | 41 namespace content { |
43 class WebContents; | 42 class WebContents; |
44 } | 43 } |
45 | 44 |
| 45 namespace user_prefs { |
| 46 class PrefRegistrySyncable; |
| 47 } |
| 48 |
46 namespace autofill { | 49 namespace autofill { |
47 | 50 |
48 class AutofillDataModel; | 51 class AutofillDataModel; |
49 class AutofillDialogView; | 52 class AutofillDialogView; |
50 class AutofillPopupControllerImpl; | 53 class AutofillPopupControllerImpl; |
51 class DataModelWrapper; | 54 class DataModelWrapper; |
52 | 55 |
53 namespace risk { | 56 namespace risk { |
54 class Fingerprint; | 57 class Fingerprint; |
55 } | 58 } |
(...skipping 16 matching lines...) Expand all Loading... |
72 virtual ~AutofillDialogControllerImpl(); | 75 virtual ~AutofillDialogControllerImpl(); |
73 | 76 |
74 static base::WeakPtr<AutofillDialogControllerImpl> Create( | 77 static base::WeakPtr<AutofillDialogControllerImpl> Create( |
75 content::WebContents* contents, | 78 content::WebContents* contents, |
76 const FormData& form_structure, | 79 const FormData& form_structure, |
77 const GURL& source_url, | 80 const GURL& source_url, |
78 const DialogType dialog_type, | 81 const DialogType dialog_type, |
79 const base::Callback<void(const FormStructure*, | 82 const base::Callback<void(const FormStructure*, |
80 const std::string&)>& callback); | 83 const std::string&)>& callback); |
81 | 84 |
82 static void RegisterUserPrefs(PrefRegistrySyncable* registry); | 85 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); |
83 | 86 |
84 void Show(); | 87 void Show(); |
85 void Hide(); | 88 void Hide(); |
86 | 89 |
87 // Updates the progress bar based on the Autocheckout progress. |value| should | 90 // Updates the progress bar based on the Autocheckout progress. |value| should |
88 // be in [0.0, 1.0]. | 91 // be in [0.0, 1.0]. |
89 void UpdateProgressBar(double value); | 92 void UpdateProgressBar(double value); |
90 | 93 |
91 // Called when there is an error in an active Autocheckout flow. | 94 // Called when there is an error in an active Autocheckout flow. |
92 void OnAutocheckoutError(); | 95 void OnAutocheckoutError(); |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 | 554 |
552 // Whether the latency to display to the UI was logged to UMA yet. | 555 // Whether the latency to display to the UI was logged to UMA yet. |
553 bool was_ui_latency_logged_; | 556 bool was_ui_latency_logged_; |
554 | 557 |
555 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 558 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
556 }; | 559 }; |
557 | 560 |
558 } // namespace autofill | 561 } // namespace autofill |
559 | 562 |
560 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 563 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
OLD | NEW |