| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 // Callable for tests. | 135 // Callable for tests. |
| 136 ChromePasswordManagerClient(content::WebContents* web_contents, | 136 ChromePasswordManagerClient(content::WebContents* web_contents, |
| 137 autofill::AutofillClient* autofill_client); | 137 autofill::AutofillClient* autofill_client); |
| 138 | 138 |
| 139 private: | 139 private: |
| 140 friend class content::WebContentsUserData<ChromePasswordManagerClient>; | 140 friend class content::WebContentsUserData<ChromePasswordManagerClient>; |
| 141 | 141 |
| 142 // content::WebContentsObserver overrides. | 142 // content::WebContentsObserver overrides. |
| 143 void DidStartNavigation( | 143 void DidStartNavigation( |
| 144 content::NavigationHandle* navigation_handle) override; | 144 content::NavigationHandle* navigation_handle) override; |
| 145 // TODO(crbug.com/706392): Fix password reuse detection for Android. | |
| 146 #if !defined(OS_ANDROID) | |
| 147 void DidFinishNavigation( | 145 void DidFinishNavigation( |
| 148 content::NavigationHandle* navigation_handle) override; | 146 content::NavigationHandle* navigation_handle) override; |
| 149 | 147 |
| 148 // TODO(crbug.com/706392): Fix password reuse detection for Android. |
| 149 #if !defined(OS_ANDROID) |
| 150 // content::RenderWidgetHost::InputEventObserver overrides. | 150 // content::RenderWidgetHost::InputEventObserver overrides. |
| 151 void OnInputEvent(const blink::WebInputEvent&) override; | 151 void OnInputEvent(const blink::WebInputEvent&) override; |
| 152 #endif | 152 #endif |
| 153 | 153 |
| 154 // Given |bounds| in the renderers coordinate system, return the same bounds | 154 // Given |bounds| in the renderers coordinate system, return the same bounds |
| 155 // in the screens coordinate system. | 155 // in the screens coordinate system. |
| 156 gfx::RectF GetBoundsInScreenSpace(const gfx::RectF& bounds); | 156 gfx::RectF GetBoundsInScreenSpace(const gfx::RectF& bounds); |
| 157 | 157 |
| 158 // Checks if the current page fulfils the conditions for the password manager | 158 // Checks if the current page fulfils the conditions for the password manager |
| 159 // to be active on it, for example Sync credentials are not saved or auto | 159 // to be active on it, for example Sync credentials are not saved or auto |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 std::unique_ptr<password_manager::LogManager> log_manager_; | 212 std::unique_ptr<password_manager::LogManager> log_manager_; |
| 213 | 213 |
| 214 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the | 214 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the |
| 215 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'. | 215 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'. |
| 216 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_; | 216 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_; |
| 217 | 217 |
| 218 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); | 218 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); |
| 219 }; | 219 }; |
| 220 | 220 |
| 221 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ | 221 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ |
| OLD | NEW |