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

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

Issue 338103003: Password bubble: Ensure that the bubble stays open for at least 1 second. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
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 "components/autofill/core/common/password_form.h" 10 #include "components/autofill/core/common/password_form.h"
10 #include "components/password_manager/core/browser/password_form_manager.h" 11 #include "components/password_manager/core/browser/password_form_manager.h"
11 #include "components/password_manager/core/browser/password_store.h" 12 #include "components/password_manager/core/browser/password_store.h"
12 #include "components/password_manager/core/browser/password_store_change.h" 13 #include "components/password_manager/core/browser/password_store_change.h"
13 #include "components/password_manager/core/common/password_manager_ui.h" 14 #include "components/password_manager/core/common/password_manager_ui.h"
14 #include "content/public/browser/navigation_details.h" 15 #include "content/public/browser/navigation_details.h"
15 #include "content/public/browser/web_contents_observer.h" 16 #include "content/public/browser/web_contents_observer.h"
16 #include "content/public/browser/web_contents_user_data.h" 17 #include "content/public/browser/web_contents_user_data.h"
17 18
18 namespace content { 19 namespace content {
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 133
133 // Stores whether autofill was blocked due to a user's decision to blacklist 134 // Stores whether autofill was blocked due to a user's decision to blacklist
134 // the current site ("Never save passwords for this site"). 135 // the current site ("Never save passwords for this site").
135 bool autofill_blocked_; 136 bool autofill_blocked_;
136 137
137 // The origin of the form we're currently dealing with; we'll use this to 138 // The origin of the form we're currently dealing with; we'll use this to
138 // determine which PasswordStore changes we should care about when updating 139 // determine which PasswordStore changes we should care about when updating
139 // |password_form_map_|. 140 // |password_form_map_|.
140 GURL origin_; 141 GURL origin_;
141 142
143 // Used to measure the amount of time on a page; if it's less than some
144 // reasonable limit, then don't close the bubble upon navigation. We create
145 // (and destroy) the timer in DidNavigateMainFrame.
146 scoped_ptr<base::ElapsedTimer> timer_;
147
142 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController); 148 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController);
143 }; 149 };
144 150
145 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ 151 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698