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

Side by Side Diff: chrome/browser/ui/password/password_ui_view.h

Issue 71003002: Merge browser/ui/password and browser/ui/passwords. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/ui/passwords/password_manager_presenter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_PASSWORD_PASSWORD_UI_VIEW_H_
6 #define CHROME_BROWSER_UI_PASSWORD_PASSWORD_UI_VIEW_H_
7
8 #include "base/memory/scoped_vector.h"
9
10 namespace autofill {
11 struct PasswordForm;
12 }
13
14 class Profile;
15
16 namespace passwords_ui {
17
18 // An interface for a passwords UI View. A UI view is responsible for
19 // displaying passwords in the UI and routing UI commands to the
20 // PasswordManagerPresenter.
21 class PasswordUIView {
22 public:
23 virtual ~PasswordUIView() {}
24
25 // Returns the profile associated with the currently active profile.
26 virtual Profile* GetProfile() = 0;
27
28 // Reveals the password for the saved password entry at |index| in the UI.
29 // |index| the index of the saved password entry.
30 // |password_value| the value of saved password entry at |index|.
31 virtual void ShowPassword(size_t index, const string16& password_value) = 0;
32
33 // Updates the list of passwords in the UI.
34 // |password_list| the list of saved password entries.
35 // |show_passwords| true if the passwords should be shown in the UI.
36 virtual void SetPasswordList(
37 const ScopedVector<autofill::PasswordForm>& password_list,
38 bool show_passwords) = 0;
39
40 // Updates the list of password exceptions in the UI.
41 // |password_exception_list| The list of saved password exceptions.
42 virtual void SetPasswordExceptionList(
43 const ScopedVector<autofill::PasswordForm>& password_exception_list) = 0;
44 };
45
46 } // namespace passwords_ui
47
48 #endif // CHROME_BROWSER_UI_PASSWORD_PASSWORD_UI_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/passwords/password_manager_presenter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698