OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ | 5 #ifndef CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ |
6 #define CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ | 6 #define CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 // Have we already shown Autofill suggestions for the field the user is | 199 // Have we already shown Autofill suggestions for the field the user is |
200 // currently editing? Used to keep track of state for metrics logging. | 200 // currently editing? Used to keep track of state for metrics logging. |
201 bool has_shown_autofill_popup_for_current_edit_; | 201 bool has_shown_autofill_popup_for_current_edit_; |
202 | 202 |
203 // If true we just set the node text so we shouldn't show the popup. | 203 // If true we just set the node text so we shouldn't show the popup. |
204 bool did_set_node_text_; | 204 bool did_set_node_text_; |
205 | 205 |
206 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; | 206 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; |
207 | 207 |
208 friend class PasswordAutofillManagerTest; | 208 friend class PasswordAutofillManagerTest; |
| 209 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, FillFormElement); |
209 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, SendForms); | 210 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, SendForms); |
210 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, FillFormElement); | 211 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, ShowAutofillWarning); |
211 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername); | 212 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername); |
212 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept); | 213 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept); |
213 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect); | 214 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect); |
214 | 215 |
215 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); | 216 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); |
216 }; | 217 }; |
217 | 218 |
218 } // namespace autofill | 219 } // namespace autofill |
219 | 220 |
220 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ | 221 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ |
OLD | NEW |