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 active sync |
| 169 // without 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 14 matching lines...) Expand all Loading... |
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 |
198 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); | 202 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); |
199 }; | 203 }; |
200 | 204 |
201 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ | 205 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ |
OLD | NEW |