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

Side by Side Diff: chrome/browser/ui/passwords/password_ui_view.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_PASSWORDS_PASSWORD_UI_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_PASSWORD_UI_VIEW_H_
6 #define CHROME_BROWSER_UI_PASSWORDS_PASSWORD_UI_VIEW_H_ 6 #define CHROME_BROWSER_UI_PASSWORDS_PASSWORD_UI_VIEW_H_
7 7
8 #include "base/memory/scoped_vector.h" 8 #include "base/memory/scoped_vector.h"
9 9
10 namespace autofill { 10 namespace autofill {
11 struct PasswordForm; 11 struct PasswordForm;
12 } 12 }
13 13
14 namespace content {
15 class WebContents;
16 }
17
14 class Profile; 18 class Profile;
15 19
16 // An interface for a passwords UI View. A UI view is responsible for 20 // An interface for a passwords UI View. A UI view is responsible for
17 // displaying passwords in the UI and routing UI commands to the 21 // displaying passwords in the UI and routing UI commands to the
18 // PasswordManagerPresenter. 22 // PasswordManagerPresenter.
19 class PasswordUIView { 23 class PasswordUIView {
20 public: 24 public:
21 virtual ~PasswordUIView() {} 25 virtual ~PasswordUIView() {}
22 26
23 // Returns the profile associated with the currently active profile. 27 // Returns the profile associated with the currently active profile.
24 virtual Profile* GetProfile() = 0; 28 virtual Profile* GetProfile() = 0;
25 29
26 // Reveals the password for the saved password entry at |index| in the UI. 30 // Reveals the password for the saved password entry at |index| in the UI.
27 // |index| the index of the saved password entry. 31 // |index| the index of the saved password entry.
28 // |password_value| the value of saved password entry at |index|. 32 // |password_value| the value of saved password entry at |index|.
29 virtual void ShowPassword(size_t index, const string16& password_value) = 0; 33 virtual void ShowPassword(size_t index, const string16& password_value) = 0;
30 34
31 // Updates the list of passwords in the UI. 35 // Updates the list of passwords in the UI.
32 // |password_list| the list of saved password entries. 36 // |password_list| the list of saved password entries.
33 // |show_passwords| true if the passwords should be shown in the UI. 37 // |show_passwords| true if the passwords should be shown in the UI.
34 virtual void SetPasswordList( 38 virtual void SetPasswordList(
35 const ScopedVector<autofill::PasswordForm>& password_list, 39 const ScopedVector<autofill::PasswordForm>& password_list,
36 bool show_passwords) = 0; 40 bool show_passwords) = 0;
37 41
38 // Updates the list of password exceptions in the UI. 42 // Updates the list of password exceptions in the UI.
39 // |password_exception_list| The list of saved password exceptions. 43 // |password_exception_list| The list of saved password exceptions.
40 virtual void SetPasswordExceptionList( 44 virtual void SetPasswordExceptionList(
41 const ScopedVector<autofill::PasswordForm>& password_exception_list) = 0; 45 const ScopedVector<autofill::PasswordForm>& password_exception_list) = 0;
46
47 // Returns the WebContents for the view
48 virtual content::WebContents* GetWebContents() = 0;
Patrick Dubroy 2013/11/27 16:59:18 I don't think this makes sense. This interface is
42 }; 49 };
43 50
44 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_UI_VIEW_H_ 51 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_UI_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698