Chromium Code Reviews| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 158 // for UMA stats. | 158 // for UMA stats. |
| 159 void GenerationAvailableForForm(const autofill::PasswordForm& form); | 159 void GenerationAvailableForForm(const autofill::PasswordForm& form); |
| 160 | 160 |
| 161 // Called as a response to PromptUserToChooseCredentials. nullptr in |form| | 161 // Called as a response to PromptUserToChooseCredentials. nullptr in |form| |
| 162 // means that nothing was chosen. |one_local_credential| is true if there was | 162 // means that nothing was chosen. |one_local_credential| is true if there was |
| 163 // just one local credential to be chosen from. | 163 // just one local credential to be chosen from. |
| 164 void OnCredentialsChosen(const CredentialsCallback& callback, | 164 void OnCredentialsChosen(const CredentialsCallback& callback, |
| 165 bool one_local_credential, | 165 bool one_local_credential, |
| 166 const autofill::PasswordForm* form); | 166 const autofill::PasswordForm* form); |
| 167 | 167 |
| 168 // Returns true if this profile has metrics reporting and doesn't have | |
|
vabr (Chromium)
2016/09/02 09:12:20
nit: The current phrasing is unclear about the nec
Nathan Parker
2016/09/02 22:42:36
Done.
| |
| 169 // a custom sync passphrase. | |
| 170 static bool ShouldAnnotateNavigationEntries(Profile* profile); | |
| 171 | |
| 168 Profile* const profile_; | 172 Profile* const profile_; |
| 169 | 173 |
| 170 password_manager::PasswordManager password_manager_; | 174 password_manager::PasswordManager password_manager_; |
| 171 | 175 |
| 172 password_manager::ContentPasswordManagerDriverFactory* driver_factory_; | 176 password_manager::ContentPasswordManagerDriverFactory* driver_factory_; |
| 173 | 177 |
| 174 // As a mojo service, will be registered into service registry | 178 // As a mojo service, will be registered into service registry |
| 175 // of the main frame host by ChromeContentBrowserClient | 179 // of the main frame host by ChromeContentBrowserClient |
| 176 // once main frame host was created. | 180 // once main frame host was created. |
| 177 password_manager::CredentialManagerImpl credential_manager_impl_; | 181 password_manager::CredentialManagerImpl credential_manager_impl_; |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 188 BooleanPrefMember saving_and_filling_passwords_enabled_; | 192 BooleanPrefMember saving_and_filling_passwords_enabled_; |
| 189 | 193 |
| 190 const password_manager::SyncCredentialsFilter credentials_filter_; | 194 const password_manager::SyncCredentialsFilter credentials_filter_; |
| 191 | 195 |
| 192 std::unique_ptr<password_manager::LogManager> log_manager_; | 196 std::unique_ptr<password_manager::LogManager> log_manager_; |
| 193 | 197 |
| 194 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the | 198 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the |
| 195 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'. | 199 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'. |
| 196 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_; | 200 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_; |
| 197 | 201 |
| 202 FRIEND_TEST_ALL_PREFIXES(ChromePasswordManagerClientTest, | |
|
vabr (Chromium)
2016/09/02 09:12:20
Please do not friend the test. We try hard to elim
Nathan Parker
2016/09/02 22:42:36
Interesting, good idea in general. Done. And I t
| |
| 203 ShouldAnnotateNavigationEntry); | |
| 204 | |
| 198 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); | 205 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); |
| 199 }; | 206 }; |
| 200 | 207 |
| 201 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ | 208 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ |
| OLD | NEW |