| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ |
| 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 // messages to close the Autofill popup when it can't possibly be showing. | 223 // messages to close the Autofill popup when it can't possibly be showing. |
| 224 bool is_popup_possibly_visible_; | 224 bool is_popup_possibly_visible_; |
| 225 | 225 |
| 226 // True if a message has already been sent about forms for the main frame. | 226 // True if a message has already been sent about forms for the main frame. |
| 227 // When the main frame is first loaded, a message is sent even if no forms | 227 // When the main frame is first loaded, a message is sent even if no forms |
| 228 // exist in the frame. Otherwise, such messages are supressed. | 228 // exist in the frame. Otherwise, such messages are supressed. |
| 229 bool main_frame_processed_; | 229 bool main_frame_processed_; |
| 230 | 230 |
| 231 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; | 231 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; |
| 232 | 232 |
| 233 friend class PasswordAutofillAgentTest; | |
| 234 friend class RequestAutocompleteRendererTest; | |
| 235 FRIEND_TEST_ALL_PREFIXES(AutofillRendererTest, FillFormElement); | |
| 236 FRIEND_TEST_ALL_PREFIXES(AutofillRendererTest, SendDynamicForms); | |
| 237 FRIEND_TEST_ALL_PREFIXES(AutofillRendererTest, ShowAutofillWarning); | |
| 238 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillAgentTest, WaitUsername); | |
| 239 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillAgentTest, SuggestionAccept); | |
| 240 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillAgentTest, SuggestionSelect); | |
| 241 FRIEND_TEST_ALL_PREFIXES( | |
| 242 PasswordAutofillAgentTest, | |
| 243 PasswordAutofillTriggersOnChangeEventsWaitForUsername); | |
| 244 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillAgentTest, CredentialsOnClick); | |
| 245 FRIEND_TEST_ALL_PREFIXES(RequestAutocompleteRendererTest, | |
| 246 NoCancelOnMainFrameNavigateAfterDone); | |
| 247 FRIEND_TEST_ALL_PREFIXES(RequestAutocompleteRendererTest, | |
| 248 NoCancelOnSubframeNavigateAfterDone); | |
| 249 FRIEND_TEST_ALL_PREFIXES(RequestAutocompleteRendererTest, | |
| 250 InvokingTwiceOnlyShowsOnce); | |
| 251 | |
| 252 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); | 233 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); |
| 253 }; | 234 }; |
| 254 | 235 |
| 255 } // namespace autofill | 236 } // namespace autofill |
| 256 | 237 |
| 257 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ | 238 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ |
| OLD | NEW |