OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHROME_AUTOFILL_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ |
6 #define CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 const std::vector<base::string16>& labels) override; | 72 const std::vector<base::string16>& labels) override; |
73 void HideAutofillPopup() override; | 73 void HideAutofillPopup() override; |
74 bool IsAutocompleteEnabled() override; | 74 bool IsAutocompleteEnabled() override; |
75 void PropagateAutofillPredictions( | 75 void PropagateAutofillPredictions( |
76 content::RenderFrameHost* rfh, | 76 content::RenderFrameHost* rfh, |
77 const std::vector<autofill::FormStructure*>& forms) override; | 77 const std::vector<autofill::FormStructure*>& forms) override; |
78 void DidFillOrPreviewField(const base::string16& autofilled_value, | 78 void DidFillOrPreviewField(const base::string16& autofilled_value, |
79 const base::string16& profile_full_name) override; | 79 const base::string16& profile_full_name) override; |
80 void OnFirstUserGestureObserved() override; | 80 void OnFirstUserGestureObserved() override; |
81 bool IsContextSecure(const GURL& form_origin) override; | 81 bool IsContextSecure(const GURL& form_origin) override; |
| 82 bool ShouldShowSigninPromo() override; |
| 83 void StartSigninFlow() override; |
82 | 84 |
83 // content::WebContentsObserver implementation. | 85 // content::WebContentsObserver implementation. |
84 void MainFrameWasResized(bool width_changed) override; | 86 void MainFrameWasResized(bool width_changed) override; |
85 void WebContentsDestroyed() override; | 87 void WebContentsDestroyed() override; |
86 | 88 |
87 // ZoomObserver implementation. | 89 // ZoomObserver implementation. |
88 void OnZoomChanged( | 90 void OnZoomChanged( |
89 const zoom::ZoomController::ZoomChangedEventData& data) override; | 91 const zoom::ZoomController::ZoomChangedEventData& data) override; |
90 | 92 |
91 private: | 93 private: |
92 explicit ChromeAutofillClient(content::WebContents* web_contents); | 94 explicit ChromeAutofillClient(content::WebContents* web_contents); |
93 friend class content::WebContentsUserData<ChromeAutofillClient>; | 95 friend class content::WebContentsUserData<ChromeAutofillClient>; |
94 | 96 |
95 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_; | 97 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_; |
96 CardUnmaskPromptControllerImpl unmask_controller_; | 98 CardUnmaskPromptControllerImpl unmask_controller_; |
97 | 99 |
98 // The identity provider, used for Payments integration. | 100 // The identity provider, used for Payments integration. |
99 std::unique_ptr<IdentityProvider> identity_provider_; | 101 std::unique_ptr<IdentityProvider> identity_provider_; |
100 | 102 |
101 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient); | 103 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient); |
102 }; | 104 }; |
103 | 105 |
104 } // namespace autofill | 106 } // namespace autofill |
105 | 107 |
106 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ | 108 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ |
OLD | NEW |