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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 void OnFieldTypePredictionsAvailable( | 100 void OnFieldTypePredictionsAvailable( |
101 const std::vector<FormDataPredictions>& forms); | 101 const std::vector<FormDataPredictions>& forms); |
102 | 102 |
103 // For external Autofill selection. | 103 // For external Autofill selection. |
104 void OnSetAutofillActionFill(); | 104 void OnSetAutofillActionFill(); |
105 void OnClearForm(); | 105 void OnClearForm(); |
106 void OnSetAutofillActionPreview(); | 106 void OnSetAutofillActionPreview(); |
107 void OnClearPreviewedForm(); | 107 void OnClearPreviewedForm(); |
108 void OnSetNodeText(const base::string16& value); | 108 void OnSetNodeText(const base::string16& value); |
109 void OnAcceptDataListSuggestion(const base::string16& value); | 109 void OnAcceptDataListSuggestion(const base::string16& value); |
110 void OnAcceptPasswordAutofillSuggestion(const base::string16& username); | 110 void OnAcceptPasswordAutofillSuggestion(const base::string16& username, |
| 111 const base::string16& password); |
111 | 112 |
112 // Called when interactive autocomplete finishes. | 113 // Called when interactive autocomplete finishes. |
113 void OnRequestAutocompleteResult( | 114 void OnRequestAutocompleteResult( |
114 blink::WebFormElement::AutocompleteResult result, | 115 blink::WebFormElement::AutocompleteResult result, |
115 const FormData& form_data); | 116 const FormData& form_data); |
116 | 117 |
117 // Called when an autocomplete request succeeds or fails with the |result|. | 118 // Called when an autocomplete request succeeds or fails with the |result|. |
118 void FinishAutocompleteRequest( | 119 void FinishAutocompleteRequest( |
119 blink::WebFormElement::AutocompleteResult result); | 120 blink::WebFormElement::AutocompleteResult result); |
120 | 121 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 FRIEND_TEST_ALL_PREFIXES( | 244 FRIEND_TEST_ALL_PREFIXES( |
244 PasswordAutofillAgentTest, | 245 PasswordAutofillAgentTest, |
245 PasswordAutofillTriggersOnChangeEventsWaitForUsername); | 246 PasswordAutofillTriggersOnChangeEventsWaitForUsername); |
246 | 247 |
247 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); | 248 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); |
248 }; | 249 }; |
249 | 250 |
250 } // namespace autofill | 251 } // namespace autofill |
251 | 252 |
252 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ | 253 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ |
OLD | NEW |