| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 // The menu index of the "Autofill options..." menu item. | 170 // The menu index of the "Autofill options..." menu item. |
| 171 int suggestions_options_index_; | 171 int suggestions_options_index_; |
| 172 | 172 |
| 173 // Have we already shown Autofill suggestions for the field the user is | 173 // Have we already shown Autofill suggestions for the field the user is |
| 174 // currently editing? Used to keep track of state for metrics logging. | 174 // currently editing? Used to keep track of state for metrics logging. |
| 175 bool has_shown_autofill_popup_for_current_edit_; | 175 bool has_shown_autofill_popup_for_current_edit_; |
| 176 | 176 |
| 177 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; | 177 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; |
| 178 | 178 |
| 179 friend class PasswordAutofillManagerTest; | 179 friend class PasswordAutofillManagerTest; |
| 180 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, SendForms); | 180 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, SendForms); |
| 181 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, FillFormElement); | 181 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, FillFormElement); |
| 182 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername); | 182 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername); |
| 183 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept); | 183 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept); |
| 184 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect); | 184 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect); |
| 185 | 185 |
| 186 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); | 186 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); |
| 187 }; | 187 }; |
| 188 | 188 |
| 189 } // namespace autofill | 189 } // namespace autofill |
| 190 | 190 |
| 191 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ | 191 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ |
| OLD | NEW |