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 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/scoped_vector.h" | 13 #include "base/memory/scoped_vector.h" |
14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
15 #include "base/prefs/pref_member.h" | 15 #include "base/prefs/pref_member.h" |
16 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
17 #include "components/autofill/core/common/password_form.h" | 17 #include "components/autofill/core/common/password_form.h" |
18 #include "components/autofill/core/common/password_form_fill_data.h" | 18 #include "components/autofill/core/common/password_form_fill_data.h" |
19 #include "components/password_manager/core/browser/login_model.h" | 19 #include "components/password_manager/core/browser/login_model.h" |
20 #include "components/password_manager/core/browser/password_form_manager.h" | 20 #include "components/password_manager/core/browser/password_form_manager.h" |
21 | 21 |
22 class PrefRegistrySimple; | 22 class PrefRegistrySimple; |
23 | 23 |
24 namespace content { | |
25 class WebContents; | |
26 } | |
27 | |
28 namespace user_prefs { | 24 namespace user_prefs { |
29 class PrefRegistrySyncable; | 25 class PrefRegistrySyncable; |
30 } | 26 } |
31 | 27 |
32 namespace password_manager { | 28 namespace password_manager { |
33 | 29 |
34 class BrowserSavePasswordProgressLogger; | 30 class BrowserSavePasswordProgressLogger; |
35 class PasswordManagerClient; | 31 class PasswordManagerClient; |
36 class PasswordManagerDriver; | 32 class PasswordManagerDriver; |
37 class PasswordManagerTest; | |
38 class PasswordFormManager; | 33 class PasswordFormManager; |
39 | 34 |
40 // Per-tab password manager. Handles creation and management of UI elements, | 35 // Per-tab password manager. Handles creation and management of UI elements, |
41 // receiving password form data from the renderer and managing the password | 36 // receiving password form data from the renderer and managing the password |
42 // database through the PasswordStore. The PasswordManager is a LoginModel | 37 // database through the PasswordStore. The PasswordManager is a LoginModel |
43 // for purposes of supporting HTTP authentication dialogs. | 38 // for purposes of supporting HTTP authentication dialogs. |
44 class PasswordManager : public LoginModel { | 39 class PasswordManager : public LoginModel { |
45 public: | 40 public: |
46 static const char kOtherPossibleUsernamesExperiment[]; | 41 static const char kOtherPossibleUsernamesExperiment[]; |
47 | 42 |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 // the recorded forms matches the login form from the previous page | 195 // the recorded forms matches the login form from the previous page |
201 // (to see if the login was a failure), and clears the vector. | 196 // (to see if the login was a failure), and clears the vector. |
202 std::vector<autofill::PasswordForm> all_visible_forms_; | 197 std::vector<autofill::PasswordForm> all_visible_forms_; |
203 | 198 |
204 DISALLOW_COPY_AND_ASSIGN(PasswordManager); | 199 DISALLOW_COPY_AND_ASSIGN(PasswordManager); |
205 }; | 200 }; |
206 | 201 |
207 } // namespace password_manager | 202 } // namespace password_manager |
208 | 203 |
209 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_H_ | 204 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_H_ |
OLD | NEW |