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 COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_H_ | 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_H_ |
| 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_H_ | 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 92 const std::vector<autofill::PasswordForm>& forms); | 92 const std::vector<autofill::PasswordForm>& forms); |
| 93 | 93 |
| 94 // Handles password forms being rendered. | 94 // Handles password forms being rendered. |
| 95 void OnPasswordFormsRendered( | 95 void OnPasswordFormsRendered( |
| 96 const std::vector<autofill::PasswordForm>& visible_forms); | 96 const std::vector<autofill::PasswordForm>& visible_forms); |
| 97 | 97 |
| 98 // Handles a password form being submitted. | 98 // Handles a password form being submitted. |
| 99 virtual void OnPasswordFormSubmitted( | 99 virtual void OnPasswordFormSubmitted( |
| 100 const autofill::PasswordForm& password_form); | 100 const autofill::PasswordForm& password_form); |
| 101 | 101 |
| 102 PasswordManagerClient* client() const { return client_; } | |
|
Ilya Sherman
2014/04/09 21:10:08
This method returns a non-const pointer, so the me
vabr (Chromium)
2014/04/10 08:51:25
Done.
Personally, I would agree with you if the cl
Ilya Sherman
2014/04/10 09:23:07
You should really never use const on a method that
vabr (Chromium)
2014/04/10 12:15:41
Thanks, Ilya, that's a very good point, and I agre
| |
| 103 | |
| 102 private: | 104 private: |
| 103 enum ProvisionalSaveFailure { | 105 enum ProvisionalSaveFailure { |
| 104 SAVING_DISABLED, | 106 SAVING_DISABLED, |
| 105 EMPTY_PASSWORD, | 107 EMPTY_PASSWORD, |
| 106 NO_MATCHING_FORM, | 108 NO_MATCHING_FORM, |
| 107 MATCHING_NOT_COMPLETE, | 109 MATCHING_NOT_COMPLETE, |
| 108 FORM_BLACKLISTED, | 110 FORM_BLACKLISTED, |
| 109 INVALID_FORM, | 111 INVALID_FORM, |
| 110 AUTOCOMPLETE_OFF, | 112 AUTOCOMPLETE_OFF, |
| 111 MAX_FAILURE_VALUE | 113 MAX_FAILURE_VALUE |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 175 | 177 |
| 176 // Callbacks to be notified when a password form has been submitted. | 178 // Callbacks to be notified when a password form has been submitted. |
| 177 std::vector<PasswordSubmittedCallback> submission_callbacks_; | 179 std::vector<PasswordSubmittedCallback> submission_callbacks_; |
| 178 | 180 |
| 179 DISALLOW_COPY_AND_ASSIGN(PasswordManager); | 181 DISALLOW_COPY_AND_ASSIGN(PasswordManager); |
| 180 }; | 182 }; |
| 181 | 183 |
| 182 } // namespace password_manager | 184 } // namespace password_manager |
| 183 | 185 |
| 184 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_H_ | 186 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_H_ |
| OLD | NEW |