| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/memory/scoped_vector.h" | 12 #include "base/memory/scoped_vector.h" |
| 13 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
| 14 #include "chrome/browser/password_manager/password_form_manager.h" | 14 #include "chrome/browser/password_manager/password_form_manager.h" |
| 15 #include "chrome/browser/prefs/pref_member.h" | 15 #include "chrome/browser/prefs/pref_member.h" |
| 16 #include "chrome/browser/ui/login/login_model.h" | 16 #include "chrome/browser/ui/login/login_model.h" |
| 17 #include "content/public/browser/web_contents_observer.h" | 17 #include "content/public/browser/web_contents_observer.h" |
| 18 #include "webkit/forms/password_form.h" | 18 #include "webkit/forms/password_form.h" |
| 19 #include "webkit/forms/password_form_dom_manager.h" | 19 #include "webkit/forms/password_form_dom_manager.h" |
| 20 | 20 |
| 21 class PasswordManagerDelegate; | 21 class PasswordManagerDelegate; |
| 22 class PasswordManagerTest; | 22 class PasswordManagerTest; |
| 23 class PasswordFormManager; | 23 class PasswordFormManager; |
| 24 class PrefService; | 24 class PrefService; |
| 25 | 25 |
| 26 // Per-tab password manager. Handles creation and management of UI elements, | 26 // Per-tab password manager. Handles creation and management of UI elements, |
| 27 // receiving password form data from the renderer and managing the password | 27 // receiving password form data from the renderer and managing the password |
| 28 // database through the WebDataService. The PasswordManager is a LoginModel | 28 // database through the PasswordStore. The PasswordManager is a LoginModel |
| 29 // for purposes of supporting HTTP authentication dialogs. | 29 // for purposes of supporting HTTP authentication dialogs. |
| 30 class PasswordManager : public LoginModel, | 30 class PasswordManager : public LoginModel, |
| 31 public content::WebContentsObserver { | 31 public content::WebContentsObserver { |
| 32 public: | 32 public: |
| 33 static void RegisterUserPrefs(PrefService* prefs); | 33 static void RegisterUserPrefs(PrefService* prefs); |
| 34 | 34 |
| 35 // The delegate passed in is required to outlive the PasswordManager. | 35 // The delegate passed in is required to outlive the PasswordManager. |
| 36 PasswordManager(content::WebContents* web_contents, | 36 PasswordManager(content::WebContents* web_contents, |
| 37 PasswordManagerDelegate* delegate); | 37 PasswordManagerDelegate* delegate); |
| 38 | 38 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 LoginModelObserver* observer_; | 104 LoginModelObserver* observer_; |
| 105 | 105 |
| 106 // Set to false to disable the password manager (will no longer fill | 106 // Set to false to disable the password manager (will no longer fill |
| 107 // passwords or ask you if you want to save passwords). | 107 // passwords or ask you if you want to save passwords). |
| 108 BooleanPrefMember password_manager_enabled_; | 108 BooleanPrefMember password_manager_enabled_; |
| 109 | 109 |
| 110 DISALLOW_COPY_AND_ASSIGN(PasswordManager); | 110 DISALLOW_COPY_AND_ASSIGN(PasswordManager); |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ | 113 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ |
| OLD | NEW |