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

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

Issue 79103002: Abstracted AcceptPasswordAutofillSuggestion IPC out of core Autofill code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review fixes. Created 7 years, 1 month 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
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 void OnFieldTypePredictionsAvailable( 96 void OnFieldTypePredictionsAvailable(
97 const std::vector<FormDataPredictions>& forms); 97 const std::vector<FormDataPredictions>& forms);
98 98
99 // For external Autofill selection. 99 // For external Autofill selection.
100 void OnSetAutofillActionFill(); 100 void OnSetAutofillActionFill();
101 void OnClearForm(); 101 void OnClearForm();
102 void OnSetAutofillActionPreview(); 102 void OnSetAutofillActionPreview();
103 void OnClearPreviewedForm(); 103 void OnClearPreviewedForm();
104 void OnSetNodeText(const base::string16& value); 104 void OnSetNodeText(const base::string16& value);
105 void OnAcceptDataListSuggestion(const base::string16& value); 105 void OnAcceptDataListSuggestion(const base::string16& value);
106 void OnAcceptPasswordAutofillSuggestion(const base::string16& value); 106 void OnAcceptPasswordAutofillSuggestion(const base::string16& username);
107 107
108 // Called when interactive autocomplete finishes. 108 // Called when interactive autocomplete finishes.
109 void OnRequestAutocompleteResult( 109 void OnRequestAutocompleteResult(
110 blink::WebFormElement::AutocompleteResult result, 110 blink::WebFormElement::AutocompleteResult result,
111 const FormData& form_data); 111 const FormData& form_data);
112 112
113 // Called when an autocomplete request succeeds or fails with the |result|. 113 // Called when an autocomplete request succeeds or fails with the |result|.
114 void FinishAutocompleteRequest( 114 void FinishAutocompleteRequest(
115 blink::WebFormElement::AutocompleteResult result); 115 blink::WebFormElement::AutocompleteResult result);
116 116
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillAgentTest, WaitUsername); 225 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillAgentTest, WaitUsername);
226 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillAgentTest, SuggestionAccept); 226 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillAgentTest, SuggestionAccept);
227 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillAgentTest, SuggestionSelect); 227 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillAgentTest, SuggestionSelect);
228 228
229 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); 229 DISALLOW_COPY_AND_ASSIGN(AutofillAgent);
230 }; 230 };
231 231
232 } // namespace autofill 232 } // namespace autofill
233 233
234 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ 234 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698