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

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

Issue 18199003: Allow Chrome OS login profile to have different default pref values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 5 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"
(...skipping 17 matching lines...) Expand all
28 } 28 }
29 29
30 // Per-tab password manager. Handles creation and management of UI elements, 30 // Per-tab password manager. Handles creation and management of UI elements,
31 // receiving password form data from the renderer and managing the password 31 // receiving password form data from the renderer and managing the password
32 // database through the PasswordStore. The PasswordManager is a LoginModel 32 // database through the PasswordStore. The PasswordManager is a LoginModel
33 // for purposes of supporting HTTP authentication dialogs. 33 // for purposes of supporting HTTP authentication dialogs.
34 class PasswordManager : public LoginModel, 34 class PasswordManager : public LoginModel,
35 public content::WebContentsObserver, 35 public content::WebContentsObserver,
36 public content::WebContentsUserData<PasswordManager> { 36 public content::WebContentsUserData<PasswordManager> {
37 public: 37 public:
38 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); 38 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
39 39
40 static void CreateForWebContentsAndDelegate( 40 static void CreateForWebContentsAndDelegate(
41 content::WebContents* contents, 41 content::WebContents* contents,
42 PasswordManagerDelegate* delegate); 42 PasswordManagerDelegate* delegate);
43 virtual ~PasswordManager(); 43 virtual ~PasswordManager();
44 44
45 // Is saving new data for password autofill enabled for the current profile? 45 // Is saving new data for password autofill enabled for the current profile?
46 // For example, saving new data is disabled in Incognito mode, whereas filling 46 // For example, saving new data is disabled in Incognito mode, whereas filling
47 // data is not. 47 // data is not.
48 bool IsSavingEnabled() const; 48 bool IsSavingEnabled() const;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 BooleanPrefMember password_manager_enabled_; 142 BooleanPrefMember password_manager_enabled_;
143 143
144 // Observers to be notified of LoginModel events. This is mutable to allow 144 // Observers to be notified of LoginModel events. This is mutable to allow
145 // notification in const member functions. 145 // notification in const member functions.
146 mutable ObserverList<LoginModelObserver> observers_; 146 mutable ObserverList<LoginModelObserver> observers_;
147 147
148 DISALLOW_COPY_AND_ASSIGN(PasswordManager); 148 DISALLOW_COPY_AND_ASSIGN(PasswordManager);
149 }; 149 };
150 150
151 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ 151 #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