| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 // Callable for tests. | 122 // Callable for tests. |
| 123 ChromePasswordManagerClient(content::WebContents* web_contents, | 123 ChromePasswordManagerClient(content::WebContents* web_contents, |
| 124 autofill::AutofillClient* autofill_client); | 124 autofill::AutofillClient* autofill_client); |
| 125 | 125 |
| 126 private: | 126 private: |
| 127 friend class content::WebContentsUserData<ChromePasswordManagerClient>; | 127 friend class content::WebContentsUserData<ChromePasswordManagerClient>; |
| 128 | 128 |
| 129 // content::WebContentsObserver overrides. | 129 // content::WebContentsObserver overrides. |
| 130 void DidStartNavigation( | 130 void DidStartNavigation( |
| 131 content::NavigationHandle* navigation_handle) override; | 131 content::NavigationHandle* navigation_handle) override; |
| 132 void DidNavigateMainFrame( | 132 void DidFinishNavigation( |
| 133 const content::LoadCommittedDetails& details, | 133 content::NavigationHandle* navigation_handle) override; |
| 134 const content::FrameNavigateParams& params) override; | |
| 135 | 134 |
| 136 // content::RenderWidgetHost::InputEventObserver overrides. | 135 // content::RenderWidgetHost::InputEventObserver overrides. |
| 137 void OnInputEvent(const blink::WebInputEvent&) override; | 136 void OnInputEvent(const blink::WebInputEvent&) override; |
| 138 | 137 |
| 139 // Given |bounds| in the renderers coordinate system, return the same bounds | 138 // Given |bounds| in the renderers coordinate system, return the same bounds |
| 140 // in the screens coordinate system. | 139 // in the screens coordinate system. |
| 141 gfx::RectF GetBoundsInScreenSpace(const gfx::RectF& bounds); | 140 gfx::RectF GetBoundsInScreenSpace(const gfx::RectF& bounds); |
| 142 | 141 |
| 143 // Checks if the current page fulfils the conditions for the password manager | 142 // Checks if the current page fulfils the conditions for the password manager |
| 144 // to be active on it, for example Sync credentials are not saved or auto | 143 // to be active on it, for example Sync credentials are not saved or auto |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 std::unique_ptr<password_manager::LogManager> log_manager_; | 193 std::unique_ptr<password_manager::LogManager> log_manager_; |
| 195 | 194 |
| 196 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the | 195 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the |
| 197 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'. | 196 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'. |
| 198 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_; | 197 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_; |
| 199 | 198 |
| 200 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); | 199 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); |
| 201 }; | 200 }; |
| 202 | 201 |
| 203 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ | 202 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ |
| OLD | NEW |