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

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

Issue 861103002: Credentials chooser UI for Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing tests. 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 // Shows the password bubble without user interaction. 175 // Shows the password bubble without user interaction.
176 void ShowBubbleWithoutUserInteraction(); 176 void ShowBubbleWithoutUserInteraction();
177 177
178 // content::WebContentsObserver: 178 // content::WebContentsObserver:
179 void WebContentsDestroyed() override; 179 void WebContentsDestroyed() override;
180 180
181 // Saves the parameters and clean the previous forms. 181 // Saves the parameters and clean the previous forms.
182 void SaveForms(ScopedVector<autofill::PasswordForm> local_forms, 182 void SaveForms(ScopedVector<autofill::PasswordForm> local_forms,
183 ScopedVector<autofill::PasswordForm> federated_forms); 183 ScopedVector<autofill::PasswordForm> federated_forms);
184 184
185 virtual void UpdateAndroidAccountChooserInfoBarVisibility();
markusheintz_ 2015/02/20 16:59:33 Please add a comment for this method.
186
185 // The current state of the password manager UI. 187 // The current state of the password manager UI.
186 password_manager::ui::State state_; 188 password_manager::ui::State state_;
187 189
188 // Used to measure the amount of time on a page; if it's less than some 190 // Used to measure the amount of time on a page; if it's less than some
189 // reasonable limit, then don't close the bubble upon navigation. We create 191 // reasonable limit, then don't close the bubble upon navigation. We create
190 // (and destroy) the timer in DidNavigateMainFrame. 192 // (and destroy) the timer in DidNavigateMainFrame.
191 scoped_ptr<base::ElapsedTimer> timer_; 193 scoped_ptr<base::ElapsedTimer> timer_;
192 194
193 // Set by OnPasswordSubmitted() when the user submits a form containing login 195 // Set by OnPasswordSubmitted() when the user submits a form containing login
194 // information. If the user responds to a subsequent "Do you want to save 196 // information. If the user responds to a subsequent "Do you want to save
(...skipping 25 matching lines...) Expand all
220 222
221 // The origin of the form we're currently dealing with; we'll use this to 223 // The origin of the form we're currently dealing with; we'll use this to
222 // determine which PasswordStore changes we should care about when updating 224 // determine which PasswordStore changes we should care about when updating
223 // |password_form_map_|. 225 // |password_form_map_|.
224 GURL origin_; 226 GURL origin_;
225 227
226 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController); 228 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController);
227 }; 229 };
228 230
229 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ 231 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698