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_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ |
6 #define CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 void ShowPasswordGenerationPopup(const gfx::RectF& bounds, | 93 void ShowPasswordGenerationPopup(const gfx::RectF& bounds, |
94 int max_length, | 94 int max_length, |
95 const base::string16& generation_element, | 95 const base::string16& generation_element, |
96 bool is_manually_triggered, | 96 bool is_manually_triggered, |
97 const autofill::PasswordForm& form) override; | 97 const autofill::PasswordForm& form) override; |
98 void ShowPasswordEditingPopup(const gfx::RectF& bounds, | 98 void ShowPasswordEditingPopup(const gfx::RectF& bounds, |
99 const autofill::PasswordForm& form) override; | 99 const autofill::PasswordForm& form) override; |
100 void GenerationAvailableForForm(const autofill::PasswordForm& form) override; | 100 void GenerationAvailableForForm(const autofill::PasswordForm& form) override; |
101 void HidePasswordGenerationPopup() override; | 101 void HidePasswordGenerationPopup() override; |
102 | 102 |
| 103 void CheckReuse( |
| 104 const base::string16& input, |
| 105 const std::string& domain, |
| 106 password_manager::PasswordReuseDetectorConsumer* consumer) override; |
| 107 |
103 static void CreateForWebContentsWithAutofillClient( | 108 static void CreateForWebContentsWithAutofillClient( |
104 content::WebContents* contents, | 109 content::WebContents* contents, |
105 autofill::AutofillClient* autofill_client); | 110 autofill::AutofillClient* autofill_client); |
106 | 111 |
107 // Observer for PasswordGenerationPopup events. Used for testing. | 112 // Observer for PasswordGenerationPopup events. Used for testing. |
108 void SetTestObserver(autofill::PasswordGenerationPopupObserver* observer); | 113 void SetTestObserver(autofill::PasswordGenerationPopupObserver* observer); |
109 | 114 |
110 static void BindCredentialManager( | 115 static void BindCredentialManager( |
111 content::RenderFrameHost* render_frame_host, | 116 content::RenderFrameHost* render_frame_host, |
112 password_manager::mojom::CredentialManagerRequest request); | 117 password_manager::mojom::CredentialManagerRequest request); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 std::unique_ptr<password_manager::LogManager> log_manager_; | 183 std::unique_ptr<password_manager::LogManager> log_manager_; |
179 | 184 |
180 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the | 185 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the |
181 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'. | 186 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'. |
182 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_; | 187 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_; |
183 | 188 |
184 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); | 189 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); |
185 }; | 190 }; |
186 | 191 |
187 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ | 192 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ |
OLD | NEW |