Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(491)

Side by Side Diff: components/autofill/content/renderer/autofill_agent.h

Issue 184103016: Autofill: Refactoring to support fetching password after a username is selected (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698