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

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

Issue 34393007: [Win] Add option to reauthenticate the OS user before revealing passwords. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@password
Patch Set: rebase. remove one unneeded commit. add support for changes in 39253002 Created 7 years 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/prefs/pref_member.h" 11 #include "base/prefs/pref_member.h"
12 #include "chrome/browser/ui/passwords/password_manager_presenter.h" 12 #include "chrome/browser/ui/passwords/password_manager_presenter.h"
13 #include "chrome/browser/ui/passwords/password_ui_view.h" 13 #include "chrome/browser/ui/passwords/password_ui_view.h"
14 #include "chrome/browser/ui/webui/options/options_ui.h" 14 #include "chrome/browser/ui/webui/options/options_ui.h"
15 #include "content/public/browser/web_contents.h"
Bernhard Bauer 2013/11/27 17:04:52 Is this include really necessary? password_ui_view
Will Harris 2013/12/02 23:19:27 Done.
15 16
16 namespace options { 17 namespace options {
17 18
18 // The WebUI based PasswordUIView. Displays passwords in the web ui. 19 // The WebUI based PasswordUIView. Displays passwords in the web ui.
19 class PasswordManagerHandler : public OptionsPageUIHandler, 20 class PasswordManagerHandler : public OptionsPageUIHandler,
20 public PasswordUIView { 21 public PasswordUIView {
21 public: 22 public:
22 PasswordManagerHandler(); 23 PasswordManagerHandler();
23 virtual ~PasswordManagerHandler(); 24 virtual ~PasswordManagerHandler();
24 25
25 // OptionsPageUIHandler implementation. 26 // OptionsPageUIHandler implementation.
26 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE; 27 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE;
27 virtual void InitializeHandler() OVERRIDE; 28 virtual void InitializeHandler() OVERRIDE;
28 virtual void RegisterMessages() OVERRIDE; 29 virtual void RegisterMessages() OVERRIDE;
29 30
30 // PasswordUIView implementation. 31 // PasswordUIView implementation.
31 virtual Profile* GetProfile() OVERRIDE; 32 virtual Profile* GetProfile() OVERRIDE;
32 virtual void ShowPassword(size_t index, const string16& password_value) 33 virtual void ShowPassword(size_t index, const string16& password_value)
33 OVERRIDE; 34 OVERRIDE;
34 virtual void SetPasswordList( 35 virtual void SetPasswordList(
35 const ScopedVector<autofill::PasswordForm>& password_list, 36 const ScopedVector<autofill::PasswordForm>& password_list,
36 bool show_passwords) OVERRIDE; 37 bool show_passwords) OVERRIDE;
37 virtual void SetPasswordExceptionList( 38 virtual void SetPasswordExceptionList(
38 const ScopedVector<autofill::PasswordForm>& password_exception_list) 39 const ScopedVector<autofill::PasswordForm>& password_exception_list)
39 OVERRIDE; 40 OVERRIDE;
41 virtual content::WebContents* GetWebContents() OVERRIDE;
40 42
41 private: 43 private:
42 // Clears and then populates the list of passwords and password exceptions. 44 // Clears and then populates the list of passwords and password exceptions.
43 // Called when the JS PasswordManager object is initialized. 45 // Called when the JS PasswordManager object is initialized.
44 void HandleUpdatePasswordLists(const ListValue* args); 46 void HandleUpdatePasswordLists(const ListValue* args);
45 47
46 // Removes a saved password entry. 48 // Removes a saved password entry.
47 // |value| the entry index to be removed. 49 // |value| the entry index to be removed.
48 void HandleRemoveSavedPassword(const ListValue* args); 50 void HandleRemoveSavedPassword(const ListValue* args);
49 51
(...skipping 10 matching lines...) Expand all
60 62
61 // The PasswordManagerPresenter object owned by the this view. 63 // The PasswordManagerPresenter object owned by the this view.
62 PasswordManagerPresenter password_manager_presenter_; 64 PasswordManagerPresenter password_manager_presenter_;
63 65
64 DISALLOW_COPY_AND_ASSIGN(PasswordManagerHandler); 66 DISALLOW_COPY_AND_ASSIGN(PasswordManagerHandler);
65 }; 67 };
66 68
67 } // namespace options 69 } // namespace options
68 70
69 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PASSWORD_MANAGER_HANDLER_H_ 71 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PASSWORD_MANAGER_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698