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

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

Issue 2378503002: Observe visibility of password inputs, for HTTP-bad phase 1 (Closed)
Patch Set: fix components_unittests build failure Created 4 years, 2 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
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 <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 void textFieldDidEndEditing(const blink::WebInputElement& element) override; 180 void textFieldDidEndEditing(const blink::WebInputElement& element) override;
181 void textFieldDidChange(const blink::WebFormControlElement& element) override; 181 void textFieldDidChange(const blink::WebFormControlElement& element) override;
182 void textFieldDidReceiveKeyDown( 182 void textFieldDidReceiveKeyDown(
183 const blink::WebInputElement& element, 183 const blink::WebInputElement& element,
184 const blink::WebKeyboardEvent& event) override; 184 const blink::WebKeyboardEvent& event) override;
185 void setIgnoreTextChanges(bool ignore) override; 185 void setIgnoreTextChanges(bool ignore) override;
186 void openTextDataListChooser(const blink::WebInputElement& element) override; 186 void openTextDataListChooser(const blink::WebInputElement& element) override;
187 void dataListOptionsChanged(const blink::WebInputElement& element) override; 187 void dataListOptionsChanged(const blink::WebInputElement& element) override;
188 void firstUserGestureObserved() override; 188 void firstUserGestureObserved() override;
189 void ajaxSucceeded() override; 189 void ajaxSucceeded() override;
190 void passwordFieldBecameVisible() override;
190 191
191 void OnPing(); 192 void OnPing();
192 193
193 // Called when a same-page navigation is detected. 194 // Called when a same-page navigation is detected.
194 void OnSamePageNavigationCompleted(); 195 void OnSamePageNavigationCompleted();
195 // Helper method which collects unowned elements (i.e., those not inside a 196 // Helper method which collects unowned elements (i.e., those not inside a
196 // form tag) and writes them into |output|. Returns true if the process is 197 // form tag) and writes them into |output|. Returns true if the process is
197 // successful, and all conditions for firing events are true. 198 // successful, and all conditions for firing events are true.
198 bool CollectFormlessElements(FormData* output); 199 bool CollectFormlessElements(FormData* output);
199 FRIEND_TEST_ALL_PREFIXES(FormAutocompleteTest, CollectFormlessElements); 200 FRIEND_TEST_ALL_PREFIXES(FormAutocompleteTest, CollectFormlessElements);
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 mojom::AutofillDriverPtr autofill_driver_; 306 mojom::AutofillDriverPtr autofill_driver_;
306 307
307 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; 308 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_;
308 309
309 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); 310 DISALLOW_COPY_AND_ASSIGN(AutofillAgent);
310 }; 311 };
311 312
312 } // namespace autofill 313 } // namespace autofill
313 314
314 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ 315 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698