OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_WEBUI_OPTIONS_PASSWORD_MANAGER_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_PASSWORD_MANAGER_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_PASSWORD_MANAGER_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_PASSWORD_MANAGER_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 // OptionsPageUIHandler implementation. | 23 // OptionsPageUIHandler implementation. |
24 virtual void GetLocalizedValues(DictionaryValue* localized_strings); | 24 virtual void GetLocalizedValues(DictionaryValue* localized_strings); |
25 virtual void Initialize(); | 25 virtual void Initialize(); |
26 virtual void RegisterMessages(); | 26 virtual void RegisterMessages(); |
27 | 27 |
28 // PasswordStore::Observer implementation. | 28 // PasswordStore::Observer implementation. |
29 virtual void OnLoginsChanged(); | 29 virtual void OnLoginsChanged(); |
30 | 30 |
31 // NotificationObserver implementation. | 31 // NotificationObserver implementation. |
32 virtual void Observe(NotificationType type, | 32 virtual void Observe(int type, |
33 const NotificationSource& source, | 33 const NotificationSource& source, |
34 const NotificationDetails& details); | 34 const NotificationDetails& details); |
35 | 35 |
36 private: | 36 private: |
37 // The password store associated with the currently active profile. | 37 // The password store associated with the currently active profile. |
38 PasswordStore* GetPasswordStore(); | 38 PasswordStore* GetPasswordStore(); |
39 | 39 |
40 // Called when the JS PasswordManager object is initialized. | 40 // Called when the JS PasswordManager object is initialized. |
41 void UpdatePasswordLists(const ListValue* args); | 41 void UpdatePasswordLists(const ListValue* args); |
42 | 42 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // User's pref | 120 // User's pref |
121 std::string languages_; | 121 std::string languages_; |
122 | 122 |
123 // Whether to show stored passwords or not. | 123 // Whether to show stored passwords or not. |
124 BooleanPrefMember show_passwords_; | 124 BooleanPrefMember show_passwords_; |
125 | 125 |
126 DISALLOW_COPY_AND_ASSIGN(PasswordManagerHandler); | 126 DISALLOW_COPY_AND_ASSIGN(PasswordManagerHandler); |
127 }; | 127 }; |
128 | 128 |
129 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PASSWORD_MANAGER_HANDLER_H_ | 129 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PASSWORD_MANAGER_HANDLER_H_ |
OLD | NEW |