| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_H__ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_H__ |
| 6 #define CHROME_BROWSER_PASSWORD_MANAGER_H__ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_H__ |
| 7 | 7 |
| 8 #include "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
| 9 #include "base/stl_util-inl.h" | 9 #include "base/stl_util-inl.h" |
| 10 #include "chrome/browser/password_manager/password_form_manager.h" | |
| 11 #include "chrome/browser/tab_contents/infobar_delegate.h" | 10 #include "chrome/browser/tab_contents/infobar_delegate.h" |
| 12 #include "chrome/browser/views/login_view.h" | 11 #include "chrome/browser/views/login_view.h" |
| 13 #include "chrome/common/pref_member.h" | 12 #include "chrome/common/pref_member.h" |
| 14 #include "webkit/glue/password_form.h" | 13 #include "webkit/glue/password_form.h" |
| 15 #include "webkit/glue/password_form_dom_manager.h" | 14 #include "webkit/glue/password_form_dom_manager.h" |
| 16 | 15 |
| 16 class PasswordFormManager; |
| 17 class PrefService; | 17 class PrefService; |
| 18 class TabContents; | 18 class TabContents; |
| 19 | 19 |
| 20 // Per-tab password manager. Handles creation and management of UI elements, | 20 // Per-tab password manager. Handles creation and management of UI elements, |
| 21 // receiving password form data from the renderer and managing the password | 21 // receiving password form data from the renderer and managing the password |
| 22 // database through the WebDataService. The PasswordManager is a LoginModel | 22 // database through the WebDataService. The PasswordManager is a LoginModel |
| 23 // for purposes of supporting HTTP authentication dialogs. | 23 // for purposes of supporting HTTP authentication dialogs. |
| 24 class PasswordManager : public views::LoginModel { | 24 class PasswordManager : public views::LoginModel { |
| 25 public: | 25 public: |
| 26 static void RegisterUserPrefs(PrefService* prefs); | 26 static void RegisterUserPrefs(PrefService* prefs); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 views::LoginModelObserver* observer_; | 95 views::LoginModelObserver* observer_; |
| 96 | 96 |
| 97 // Set to false to disable the password manager (will no longer fill | 97 // Set to false to disable the password manager (will no longer fill |
| 98 // passwords or ask you if you want to save passwords). | 98 // passwords or ask you if you want to save passwords). |
| 99 BooleanPrefMember password_manager_enabled_; | 99 BooleanPrefMember password_manager_enabled_; |
| 100 | 100 |
| 101 DISALLOW_EVIL_CONSTRUCTORS(PasswordManager); | 101 DISALLOW_EVIL_CONSTRUCTORS(PasswordManager); |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 #endif | 104 #endif |
| OLD | NEW |