| 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 // Fills |form| and |field| with the FormData and FormField corresponding to | 163 // Fills |form| and |field| with the FormData and FormField corresponding to |
| 164 // |node|. Returns true if the data was found; and false otherwise. | 164 // |node|. Returns true if the data was found; and false otherwise. |
| 165 bool FindFormAndFieldForNode( | 165 bool FindFormAndFieldForNode( |
| 166 const WebKit::WebNode& node, | 166 const WebKit::WebNode& node, |
| 167 FormData* form, | 167 FormData* form, |
| 168 FormFieldData* field) WARN_UNUSED_RESULT; | 168 FormFieldData* field) WARN_UNUSED_RESULT; |
| 169 | 169 |
| 170 // Set |node| to display the given |value|. | 170 // Set |node| to display the given |value|. |
| 171 void SetNodeText(const string16& value, WebKit::WebInputElement* node); | 171 void SetNodeText(const string16& value, WebKit::WebInputElement* node); |
| 172 | 172 |
| 173 // Hides any currently showing Autofill popups. | 173 // Hides any currently showing Autofill popups in the renderer or browser. |
| 174 void HidePopups(); | 174 void HidePopups(); |
| 175 | 175 |
| 176 FormCache form_cache_; | 176 FormCache form_cache_; |
| 177 | 177 |
| 178 PasswordAutofillManager* password_autofill_manager_; // WEAK reference. | 178 PasswordAutofillManager* password_autofill_manager_; // WEAK reference. |
| 179 | 179 |
| 180 // The ID of the last request sent for form field Autofill. Used to ignore | 180 // The ID of the last request sent for form field Autofill. Used to ignore |
| 181 // out of date responses. | 181 // out of date responses. |
| 182 int autofill_query_id_; | 182 int autofill_query_id_; |
| 183 | 183 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername); | 215 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername); |
| 216 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept); | 216 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept); |
| 217 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect); | 217 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect); |
| 218 | 218 |
| 219 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); | 219 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); |
| 220 }; | 220 }; |
| 221 | 221 |
| 222 } // namespace autofill | 222 } // namespace autofill |
| 223 | 223 |
| 224 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ | 224 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ |
| OLD | NEW |