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

Side by Side Diff: chrome/browser/ui/webui/options/password_manager_handler.h

Issue 9693032: [uber page] Split up initialization of handlers from initialization of webui pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename Initialize -> InitializeHandler, SendPageValues -> InitializePage Created 8 years, 9 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) 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
11 #include "base/memory/scoped_vector.h" 11 #include "base/memory/scoped_vector.h"
12 #include "chrome/browser/password_manager/password_store.h" 12 #include "chrome/browser/password_manager/password_store.h"
13 #include "chrome/browser/password_manager/password_store_consumer.h" 13 #include "chrome/browser/password_manager/password_store_consumer.h"
14 #include "chrome/browser/prefs/pref_member.h" 14 #include "chrome/browser/prefs/pref_member.h"
15 #include "chrome/browser/ui/webui/options/options_ui.h" 15 #include "chrome/browser/ui/webui/options/options_ui.h"
16 16
17 class PasswordManagerHandler : public OptionsPageUIHandler, 17 class PasswordManagerHandler : public OptionsPageUIHandler,
18 public PasswordStore::Observer { 18 public PasswordStore::Observer {
19 public: 19 public:
20 PasswordManagerHandler(); 20 PasswordManagerHandler();
21 virtual ~PasswordManagerHandler(); 21 virtual ~PasswordManagerHandler();
22 22
23 // OptionsPageUIHandler implementation. 23 // OptionsPageUIHandler implementation.
24 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE; 24 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE;
25 virtual void Initialize() OVERRIDE; 25 virtual void InitializeHandler() OVERRIDE;
26 virtual void RegisterMessages() OVERRIDE; 26 virtual void RegisterMessages() OVERRIDE;
27 27
28 // PasswordStore::Observer implementation. 28 // PasswordStore::Observer implementation.
29 virtual void OnLoginsChanged() OVERRIDE; 29 virtual void OnLoginsChanged() OVERRIDE;
30 30
31 // content::NotificationObserver implementation. 31 // content::NotificationObserver implementation.
32 virtual void Observe(int type, 32 virtual void Observe(int type,
33 const content::NotificationSource& source, 33 const content::NotificationSource& source,
34 const content::NotificationDetails& details) OVERRIDE; 34 const content::NotificationDetails& details) OVERRIDE;
35 35
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698