| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 content::WebContents* contents, | 107 content::WebContents* contents, |
| 108 autofill::AutofillClient* autofill_client); | 108 autofill::AutofillClient* autofill_client); |
| 109 | 109 |
| 110 // Observer for PasswordGenerationPopup events. Used for testing. | 110 // Observer for PasswordGenerationPopup events. Used for testing. |
| 111 void SetTestObserver(autofill::PasswordGenerationPopupObserver* observer); | 111 void SetTestObserver(autofill::PasswordGenerationPopupObserver* observer); |
| 112 | 112 |
| 113 static void BindCredentialManager( | 113 static void BindCredentialManager( |
| 114 content::RenderFrameHost* render_frame_host, | 114 content::RenderFrameHost* render_frame_host, |
| 115 password_manager::mojom::CredentialManagerRequest request); | 115 password_manager::mojom::CredentialManagerRequest request); |
| 116 | 116 |
| 117 // A helper method to determine whether a save/update bubble can be shown |
| 118 // on this |url|. |
| 119 static bool CanShowBubbleOnURL(const GURL& url); |
| 120 |
| 117 protected: | 121 protected: |
| 118 // Callable for tests. | 122 // Callable for tests. |
| 119 ChromePasswordManagerClient(content::WebContents* web_contents, | 123 ChromePasswordManagerClient(content::WebContents* web_contents, |
| 120 autofill::AutofillClient* autofill_client); | 124 autofill::AutofillClient* autofill_client); |
| 121 | 125 |
| 122 private: | 126 private: |
| 123 friend class content::WebContentsUserData<ChromePasswordManagerClient>; | 127 friend class content::WebContentsUserData<ChromePasswordManagerClient>; |
| 124 | 128 |
| 125 // content::WebContentsObserver overrides. | 129 // content::WebContentsObserver overrides. |
| 126 void DidStartNavigation( | 130 void DidStartNavigation( |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 std::unique_ptr<password_manager::LogManager> log_manager_; | 194 std::unique_ptr<password_manager::LogManager> log_manager_; |
| 191 | 195 |
| 192 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the | 196 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the |
| 193 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'. | 197 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'. |
| 194 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_; | 198 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_; |
| 195 | 199 |
| 196 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); | 200 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); |
| 197 }; | 201 }; |
| 198 | 202 |
| 199 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ | 203 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ |
| OLD | NEW |