OLD | NEW |
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/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
10 #include "base/timer/elapsed_timer.h" | 10 #include "base/timer/elapsed_timer.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // Set the state of the Omnibox icon, and possibly show the associated bubble | 87 // Set the state of the Omnibox icon, and possibly show the associated bubble |
88 // without user interaction. | 88 // without user interaction. |
89 virtual void UpdateIconAndBubbleState(ManagePasswordsIcon* icon); | 89 virtual void UpdateIconAndBubbleState(ManagePasswordsIcon* icon); |
90 | 90 |
91 password_manager::ui::State state() const { return state_; } | 91 password_manager::ui::State state() const { return state_; } |
92 | 92 |
93 // True if a password is sitting around, waiting for a user to decide whether | 93 // True if a password is sitting around, waiting for a user to decide whether |
94 // or not to save it. | 94 // or not to save it. |
95 bool PasswordPendingUserDecision() const; | 95 bool PasswordPendingUserDecision() const; |
96 | 96 |
97 const autofill::ConstPasswordFormMap best_matches() const { | 97 const autofill::ConstPasswordFormMap& best_matches() const { |
98 return password_form_map_; | 98 return password_form_map_; |
99 } | 99 } |
100 | 100 |
101 const GURL& origin() const { return origin_; } | 101 const GURL& origin() const { return origin_; } |
102 | 102 |
103 protected: | 103 protected: |
104 explicit ManagePasswordsUIController( | 104 explicit ManagePasswordsUIController( |
105 content::WebContents* web_contents); | 105 content::WebContents* web_contents); |
106 | 106 |
107 // The pieces of saving and blacklisting passwords that interact with | 107 // The pieces of saving and blacklisting passwords that interact with |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 160 |
161 // The origin of the form we're currently dealing with; we'll use this to | 161 // The origin of the form we're currently dealing with; we'll use this to |
162 // determine which PasswordStore changes we should care about when updating | 162 // determine which PasswordStore changes we should care about when updating |
163 // |password_form_map_|. | 163 // |password_form_map_|. |
164 GURL origin_; | 164 GURL origin_; |
165 | 165 |
166 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController); | 166 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController); |
167 }; | 167 }; |
168 | 168 |
169 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ | 169 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ |
OLD | NEW |