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

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

Issue 952023002: Credential Manager API: pop up the new "Manage accounts" bubble. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_MANAGE_PASSWORDS_UI_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_
7 7
8 #include "base/memory/scoped_vector.h" 8 #include "base/memory/scoped_vector.h"
9 #include "base/timer/elapsed_timer.h" 9 #include "base/timer/elapsed_timer.h"
10 #include "components/autofill/core/common/password_form.h" 10 #include "components/autofill/core/common/password_form.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // Called from the model when the user chooses to never save passwords; passes 93 // Called from the model when the user chooses to never save passwords; passes
94 // the action off to the FormManager. The controller MUST be in a pending 94 // the action off to the FormManager. The controller MUST be in a pending
95 // state, and WILL be in BLACKLIST_STATE after this method executes. 95 // state, and WILL be in BLACKLIST_STATE after this method executes.
96 virtual void NeverSavePassword(); 96 virtual void NeverSavePassword();
97 97
98 // Called from the model when the user chooses to unblacklist the site. The 98 // Called from the model when the user chooses to unblacklist the site. The
99 // controller MUST be in BLACKLIST_STATE, and WILL be in MANAGE_STATE after 99 // controller MUST be in BLACKLIST_STATE, and WILL be in MANAGE_STATE after
100 // this method executes. 100 // this method executes.
101 virtual void UnblacklistSite(); 101 virtual void UnblacklistSite();
102 102
103 // Called from the model. The controller should switch to
104 // MANAGE_ACCOUNTS_STATE and pop up a bubble.
105 virtual void ManageAccounts();
106
103 // Open a new tab, pointing to the password manager settings page. 107 // Open a new tab, pointing to the password manager settings page.
104 virtual void NavigateToPasswordManagerSettingsPage(); 108 virtual void NavigateToPasswordManagerSettingsPage();
105 109
106 virtual const autofill::PasswordForm& PendingPassword() const; 110 virtual const autofill::PasswordForm& PendingPassword() const;
107 111
108 // Set the state of the Omnibox icon, and possibly show the associated bubble 112 // Set the state of the Omnibox icon, and possibly show the associated bubble
109 // without user interaction. 113 // without user interaction.
110 virtual void UpdateIconAndBubbleState(ManagePasswordsIcon* icon); 114 virtual void UpdateIconAndBubbleState(ManagePasswordsIcon* icon);
111 115
112 // Called from the model when the bubble is displayed. 116 // Called from the model when the bubble is displayed.
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 228
225 // The origin of the form we're currently dealing with; we'll use this to 229 // The origin of the form we're currently dealing with; we'll use this to
226 // determine which PasswordStore changes we should care about when updating 230 // determine which PasswordStore changes we should care about when updating
227 // |password_form_map_|. 231 // |password_form_map_|.
228 GURL origin_; 232 GURL origin_;
229 233
230 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController); 234 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController);
231 }; 235 };
232 236
233 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ 237 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698