Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PASSWORD_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ |
| 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 107 EMPTY_PASSWORD, | 107 EMPTY_PASSWORD, |
| 108 NO_MATCHING_FORM, | 108 NO_MATCHING_FORM, |
| 109 MATCHING_NOT_COMPLETE, | 109 MATCHING_NOT_COMPLETE, |
| 110 FORM_BLACKLISTED, | 110 FORM_BLACKLISTED, |
| 111 INVALID_FORM, | 111 INVALID_FORM, |
| 112 AUTOCOMPLETE_OFF, | 112 AUTOCOMPLETE_OFF, |
| 113 MAX_FAILURE_VALUE | 113 MAX_FAILURE_VALUE |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 // Log failure for UMA | 116 // Log failure for UMA |
| 117 void RecordFailure(ProvisionalSaveFailure failure); | 117 // |form_origin| is used in order to know if the save password prompt behavior |
|
vabr (Chromium)
2013/09/11 17:31:24
nit: the previous line is wrapped too soon. Just a
jdomingos
2013/09/11 19:15:28
Done.
| |
| 118 // is monitored for the current host. | |
| 119 void RecordFailure(ProvisionalSaveFailure failure, | |
| 120 const std::string& form_origin); | |
| 118 | 121 |
| 119 // Possibly set up FieldTrial for testing other possible usernames. This only | 122 // Possibly set up FieldTrial for testing other possible usernames. This only |
| 120 // happens if there are other_possible_usernames to be shown and the | 123 // happens if there are other_possible_usernames to be shown and the |
| 121 // experiment hasn't already been initialized. We setup the experiment at | 124 // experiment hasn't already been initialized. We setup the experiment at |
| 122 // such a late time because this experiment will only affect a small number | 125 // such a late time because this experiment will only affect a small number |
| 123 // of users so we want to include a larger fraction of these users than the | 126 // of users so we want to include a larger fraction of these users than the |
| 124 // normal 10%. | 127 // normal 10%. |
| 125 void PossiblyInitializeUsernamesExperiment( | 128 void PossiblyInitializeUsernamesExperiment( |
| 126 const autofill::PasswordFormMap& matches) const; | 129 const autofill::PasswordFormMap& matches) const; |
| 127 | 130 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 169 // notification in const member functions. | 172 // notification in const member functions. |
| 170 mutable ObserverList<LoginModelObserver> observers_; | 173 mutable ObserverList<LoginModelObserver> observers_; |
| 171 | 174 |
| 172 // Callbacks to be notified when a password form has been submitted. | 175 // Callbacks to be notified when a password form has been submitted. |
| 173 std::vector<PasswordSubmittedCallback> submission_callbacks_; | 176 std::vector<PasswordSubmittedCallback> submission_callbacks_; |
| 174 | 177 |
| 175 DISALLOW_COPY_AND_ASSIGN(PasswordManager); | 178 DISALLOW_COPY_AND_ASSIGN(PasswordManager); |
| 176 }; | 179 }; |
| 177 | 180 |
| 178 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ | 181 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ |
| OLD | NEW |