Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: chrome/browser/password_manager/password_manager.h

Issue 14622003: components: Move PrefRegistrySyncable into user_prefs namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/scoped_vector.h" 11 #include "base/memory/scoped_vector.h"
12 #include "base/prefs/pref_member.h" 12 #include "base/prefs/pref_member.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/ui/login/login_model.h" 15 #include "chrome/browser/ui/login/login_model.h"
16 #include "components/autofill/common/password_form_fill_data.h" 16 #include "components/autofill/common/password_form_fill_data.h"
17 #include "content/public/browser/web_contents_observer.h" 17 #include "content/public/browser/web_contents_observer.h"
18 #include "content/public/browser/web_contents_user_data.h" 18 #include "content/public/browser/web_contents_user_data.h"
19 #include "content/public/common/password_form.h" 19 #include "content/public/common/password_form.h"
20 20
21 class PasswordManagerDelegate; 21 class PasswordManagerDelegate;
22 class PasswordManagerTest; 22 class PasswordManagerTest;
23 class PasswordFormManager; 23 class PasswordFormManager;
24
25 namespace user_prefs {
24 class PrefRegistrySyncable; 26 class PrefRegistrySyncable;
27 }
25 28
26 // Per-tab password manager. Handles creation and management of UI elements, 29 // Per-tab password manager. Handles creation and management of UI elements,
27 // receiving password form data from the renderer and managing the password 30 // receiving password form data from the renderer and managing the password
28 // database through the PasswordStore. The PasswordManager is a LoginModel 31 // database through the PasswordStore. The PasswordManager is a LoginModel
29 // for purposes of supporting HTTP authentication dialogs. 32 // for purposes of supporting HTTP authentication dialogs.
30 class PasswordManager : public LoginModel, 33 class PasswordManager : public LoginModel,
31 public content::WebContentsObserver, 34 public content::WebContentsObserver,
32 public content::WebContentsUserData<PasswordManager> { 35 public content::WebContentsUserData<PasswordManager> {
33 public: 36 public:
34 static void RegisterUserPrefs(PrefRegistrySyncable* registry); 37 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry);
35 38
36 static void CreateForWebContentsAndDelegate( 39 static void CreateForWebContentsAndDelegate(
37 content::WebContents* contents, 40 content::WebContents* contents,
38 PasswordManagerDelegate* delegate); 41 PasswordManagerDelegate* delegate);
39 virtual ~PasswordManager(); 42 virtual ~PasswordManager();
40 43
41 // Is saving new data for password autofill enabled for the current profile? 44 // Is saving new data for password autofill enabled for the current profile?
42 // For example, saving new data is disabled in Incognito mode, whereas filling 45 // For example, saving new data is disabled in Incognito mode, whereas filling
43 // data is not. 46 // data is not.
44 bool IsSavingEnabled() const; 47 bool IsSavingEnabled() const;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 LoginModelObserver* observer_; 119 LoginModelObserver* observer_;
117 120
118 // Set to false to disable the password manager (will no longer ask if you 121 // Set to false to disable the password manager (will no longer ask if you
119 // want to save passwords but will continue to fill passwords). 122 // want to save passwords but will continue to fill passwords).
120 BooleanPrefMember password_manager_enabled_; 123 BooleanPrefMember password_manager_enabled_;
121 124
122 DISALLOW_COPY_AND_ASSIGN(PasswordManager); 125 DISALLOW_COPY_AND_ASSIGN(PasswordManager);
123 }; 126 };
124 127
125 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ 128 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/password_generation_manager.cc ('k') | chrome/browser/password_manager/password_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698