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

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: Fix compile error on Chrome OS. Created 6 years, 8 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 const std::vector<FormDataPredictions>& forms); 94 const std::vector<FormDataPredictions>& forms);
95 void OnFillForm(int query_id, const FormData& form); 95 void OnFillForm(int query_id, const FormData& form);
96 void OnPreviewForm(int query_id, const FormData& form); 96 void OnPreviewForm(int query_id, const FormData& form);
97 97
98 // For external Autofill selection. 98 // For external Autofill selection.
99 void OnClearForm(); 99 void OnClearForm();
100 void OnClearPreviewedForm(); 100 void OnClearPreviewedForm();
101 void OnFillFieldWithValue(const base::string16& value); 101 void OnFillFieldWithValue(const base::string16& value);
102 void OnPreviewFieldWithValue(const base::string16& value); 102 void OnPreviewFieldWithValue(const base::string16& value);
103 void OnAcceptDataListSuggestion(const base::string16& value); 103 void OnAcceptDataListSuggestion(const base::string16& value);
104 void OnAcceptPasswordAutofillSuggestion(const base::string16& username); 104 void OnAcceptPasswordAutofillSuggestion(const base::string16& username,
105 const base::string16& password);
105 106
106 // Called when interactive autocomplete finishes. 107 // Called when interactive autocomplete finishes.
107 void OnRequestAutocompleteResult( 108 void OnRequestAutocompleteResult(
108 blink::WebFormElement::AutocompleteResult result, 109 blink::WebFormElement::AutocompleteResult result,
109 const FormData& form_data); 110 const FormData& form_data);
110 111
111 // Called when an autocomplete request succeeds or fails with the |result|. 112 // Called when an autocomplete request succeeds or fails with the |result|.
112 void FinishAutocompleteRequest( 113 void FinishAutocompleteRequest(
113 blink::WebFormElement::AutocompleteResult result); 114 blink::WebFormElement::AutocompleteResult result);
114 115
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 NoCancelOnSubframeNavigateAfterDone); 236 NoCancelOnSubframeNavigateAfterDone);
236 FRIEND_TEST_ALL_PREFIXES(RequestAutocompleteRendererTest, 237 FRIEND_TEST_ALL_PREFIXES(RequestAutocompleteRendererTest,
237 InvokingTwiceOnlyShowsOnce); 238 InvokingTwiceOnlyShowsOnce);
238 239
239 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); 240 DISALLOW_COPY_AND_ASSIGN(AutofillAgent);
240 }; 241 };
241 242
242 } // namespace autofill 243 } // namespace autofill
243 244
244 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ 245 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698