| 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 <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 namespace blink { | 27 namespace blink { |
| 28 class WebNode; | 28 class WebNode; |
| 29 class WebView; | 29 class WebView; |
| 30 } | 30 } |
| 31 | 31 |
| 32 namespace autofill { | 32 namespace autofill { |
| 33 | 33 |
| 34 struct FormData; | 34 struct FormData; |
| 35 struct FormFieldData; | 35 struct FormFieldData; |
| 36 struct PasswordFormFillData; |
| 36 class PasswordAutofillAgent; | 37 class PasswordAutofillAgent; |
| 37 class PasswordGenerationAgent; | 38 class PasswordGenerationAgent; |
| 38 | 39 |
| 39 // AutofillAgent deals with Autofill related communications between WebKit and | 40 // AutofillAgent deals with Autofill related communications between WebKit and |
| 40 // the browser. There is one AutofillAgent per RenderFrame. | 41 // the browser. There is one AutofillAgent per RenderFrame. |
| 41 // Note that Autofill encompasses: | 42 // Note that Autofill encompasses: |
| 42 // - single text field suggestions, that we usually refer to as Autocomplete, | 43 // - single text field suggestions, that we usually refer to as Autocomplete, |
| 43 // - password form fill, refered to as Password Autofill, and | 44 // - password form fill, refered to as Password Autofill, and |
| 44 // - entire form fill based on one field entry, referred to as Form Autofill. | 45 // - entire form fill based on one field entry, referred to as Form Autofill. |
| 45 | 46 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 // For external Autofill selection. | 175 // For external Autofill selection. |
| 175 void OnClearForm(); | 176 void OnClearForm(); |
| 176 void OnClearPreviewedForm(); | 177 void OnClearPreviewedForm(); |
| 177 void OnFillFieldWithValue(const base::string16& value); | 178 void OnFillFieldWithValue(const base::string16& value); |
| 178 void OnPreviewFieldWithValue(const base::string16& value); | 179 void OnPreviewFieldWithValue(const base::string16& value); |
| 179 void OnAcceptDataListSuggestion(const base::string16& value); | 180 void OnAcceptDataListSuggestion(const base::string16& value); |
| 180 void OnFillPasswordSuggestion(const base::string16& username, | 181 void OnFillPasswordSuggestion(const base::string16& username, |
| 181 const base::string16& password); | 182 const base::string16& password); |
| 182 void OnPreviewPasswordSuggestion(const base::string16& username, | 183 void OnPreviewPasswordSuggestion(const base::string16& username, |
| 183 const base::string16& password); | 184 const base::string16& password); |
| 185 void OnShowInitialPasswordAccountSuggestions( |
| 186 int key, |
| 187 const PasswordFormFillData& form_data); |
| 184 | 188 |
| 185 // Called when a same-page navigation is detected. | 189 // Called when a same-page navigation is detected. |
| 186 void OnSamePageNavigationCompleted(); | 190 void OnSamePageNavigationCompleted(); |
| 187 | 191 |
| 188 // Called in a posted task by textFieldDidChange() to work-around a WebKit bug | 192 // Called in a posted task by textFieldDidChange() to work-around a WebKit bug |
| 189 // http://bugs.webkit.org/show_bug.cgi?id=16976 | 193 // http://bugs.webkit.org/show_bug.cgi?id=16976 |
| 190 void TextFieldDidChangeImpl(const blink::WebFormControlElement& element); | 194 void TextFieldDidChangeImpl(const blink::WebFormControlElement& element); |
| 191 | 195 |
| 192 // Shows the autofill suggestions for |element|. This call is asynchronous | 196 // Shows the autofill suggestions for |element|. This call is asynchronous |
| 193 // and may or may not lead to the showing of a suggestion popup (no popup is | 197 // and may or may not lead to the showing of a suggestion popup (no popup is |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 mojom::AutofillDriverPtr mojo_autofill_driver_; | 298 mojom::AutofillDriverPtr mojo_autofill_driver_; |
| 295 | 299 |
| 296 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; | 300 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; |
| 297 | 301 |
| 298 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); | 302 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); |
| 299 }; | 303 }; |
| 300 | 304 |
| 301 } // namespace autofill | 305 } // namespace autofill |
| 302 | 306 |
| 303 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ | 307 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ |
| OLD | NEW |