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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
42 // database through the PasswordStore. The PasswordManager is a LoginModel | 42 // database through the PasswordStore. The PasswordManager is a LoginModel |
43 // for purposes of supporting HTTP authentication dialogs. | 43 // for purposes of supporting HTTP authentication dialogs. |
44 class PasswordManager : public LoginModel { | 44 class PasswordManager : public LoginModel { |
45 public: | 45 public: |
46 static const char kOtherPossibleUsernamesExperiment[]; | 46 static const char kOtherPossibleUsernamesExperiment[]; |
47 | 47 |
48 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 48 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
49 #if defined(OS_WIN) | 49 #if defined(OS_WIN) |
50 static void RegisterLocalPrefs(PrefRegistrySimple* registry); | 50 static void RegisterLocalPrefs(PrefRegistrySimple* registry); |
51 #endif | 51 #endif |
52 explicit PasswordManager(PasswordManagerClient* client); | 52 PasswordManager(PasswordManagerClient* client, PasswordManagerDriver* driver); |
vabr (Chromium)
2014/11/13 14:01:33
Oh, and actually, having one PasswordManager per f
| |
53 ~PasswordManager() override; | 53 ~PasswordManager() override; |
54 | 54 |
55 typedef base::Callback<void(const autofill::PasswordForm&)> | 55 typedef base::Callback<void(const autofill::PasswordForm&)> |
56 PasswordSubmittedCallback; | 56 PasswordSubmittedCallback; |
57 | 57 |
58 // There is no corresponding remove function as currently all of the | 58 // There is no corresponding remove function as currently all of the |
59 // owners of these callbacks have sufficient lifetimes so that the callbacks | 59 // owners of these callbacks have sufficient lifetimes so that the callbacks |
60 // should always be valid when called. | 60 // should always be valid when called. |
61 void AddSubmissionCallback(const PasswordSubmittedCallback& callback); | 61 void AddSubmissionCallback(const PasswordSubmittedCallback& callback); |
62 | 62 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
200 // the recorded forms matches the login form from the previous page | 200 // the recorded forms matches the login form from the previous page |
201 // (to see if the login was a failure), and clears the vector. | 201 // (to see if the login was a failure), and clears the vector. |
202 std::vector<autofill::PasswordForm> all_visible_forms_; | 202 std::vector<autofill::PasswordForm> all_visible_forms_; |
203 | 203 |
204 DISALLOW_COPY_AND_ASSIGN(PasswordManager); | 204 DISALLOW_COPY_AND_ASSIGN(PasswordManager); |
205 }; | 205 }; |
206 | 206 |
207 } // namespace password_manager | 207 } // namespace password_manager |
208 | 208 |
209 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_H_ | 209 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_H_ |
OLD | NEW |