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

Side by Side Diff: chrome/browser/ui/passwords/password_dialog_controller.h

Issue 2531863002: Delete all the traces of federation providers in the account chooser. (Closed)
Patch Set: android2 Created 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_DIALOG_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_PASSWORD_DIALOG_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_PASSWORDS_PASSWORD_DIALOG_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_PASSWORDS_PASSWORD_DIALOG_CONTROLLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "components/password_manager/core/common/credential_manager_types.h" 13 #include "components/password_manager/core/common/credential_manager_types.h"
14 #include "ui/gfx/range/range.h" 14 #include "ui/gfx/range/range.h"
15 15
16 namespace autofill { 16 namespace autofill {
17 struct PasswordForm; 17 struct PasswordForm;
18 } 18 }
19 19
20 // An interface used by the password dialog (the account chooser) for setting 20 // An interface used by the password dialog (the account chooser) for setting
21 // and retrieving the state. 21 // and retrieving the state.
22 class PasswordDialogController { 22 class PasswordDialogController {
23 public: 23 public:
24 using FormsVector = std::vector<std::unique_ptr<autofill::PasswordForm>>; 24 using FormsVector = std::vector<std::unique_ptr<autofill::PasswordForm>>;
25 25
26 // Returns forms from the password database for the current site. 26 // Returns forms from the password database for the current site.
27 virtual const FormsVector& GetLocalForms() const = 0; 27 virtual const FormsVector& GetLocalForms() const = 0;
28 28
29 // Returns IDP's forms which can be used for logging in.
30 virtual const FormsVector& GetFederationsForms() const = 0;
31
32 // Returns a title of the account chooser and a range of the Smart Lock 29 // Returns a title of the account chooser and a range of the Smart Lock
33 // hyperlink if it exists. If the range is empty then no hyperlink is shown. 30 // hyperlink if it exists. If the range is empty then no hyperlink is shown.
34 virtual std::pair<base::string16, gfx::Range> GetAccoutChooserTitle() const 31 virtual std::pair<base::string16, gfx::Range> GetAccoutChooserTitle() const
35 = 0; 32 = 0;
36 33
37 // Whether the account chooser should display the "Sign in" button. 34 // Whether the account chooser should display the "Sign in" button.
38 virtual bool ShouldShowSignInButton() const = 0; 35 virtual bool ShouldShowSignInButton() const = 0;
39 36
40 // Returns the title for the autosignin first run dialog. 37 // Returns the title for the autosignin first run dialog.
41 virtual base::string16 GetAutoSigninPromoTitle() const = 0; 38 virtual base::string16 GetAutoSigninPromoTitle() const = 0;
(...skipping 21 matching lines...) Expand all
63 60
64 // Called when the dialog was closed. 61 // Called when the dialog was closed.
65 virtual void OnCloseDialog() = 0; 62 virtual void OnCloseDialog() = 0;
66 63
67 protected: 64 protected:
68 virtual ~PasswordDialogController() = default; 65 virtual ~PasswordDialogController() = default;
69 }; 66 };
70 67
71 68
72 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_DIALOG_CONTROLLER_H_ 69 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_DIALOG_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698