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

Side by Side Diff: chrome/renderer/autofill/autofill_agent.h

Issue 11364066: [Autofill] Show a warning if the form disables Autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Case-insensitivity + test Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ 5 #ifndef CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_
6 #define CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ 6 #define CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // Have we already shown Autofill suggestions for the field the user is 185 // Have we already shown Autofill suggestions for the field the user is
186 // currently editing? Used to keep track of state for metrics logging. 186 // currently editing? Used to keep track of state for metrics logging.
187 bool has_shown_autofill_popup_for_current_edit_; 187 bool has_shown_autofill_popup_for_current_edit_;
188 188
189 // If true we just set the node text so we shouldn't show the popup. 189 // If true we just set the node text so we shouldn't show the popup.
190 bool did_set_node_text_; 190 bool did_set_node_text_;
191 191
192 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; 192 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_;
193 193
194 friend class PasswordAutofillManagerTest; 194 friend class PasswordAutofillManagerTest;
195 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, FillFormElement);
195 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, SendForms); 196 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, SendForms);
196 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, FillFormElement); 197 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, ShowAutofillWarning);
197 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername); 198 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername);
198 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept); 199 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept);
199 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect); 200 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect);
200 201
201 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); 202 DISALLOW_COPY_AND_ASSIGN(AutofillAgent);
202 }; 203 };
203 204
204 } // namespace autofill 205 } // namespace autofill
205 206
206 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ 207 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/autofill/autofill_agent.cc » ('j') | chrome/renderer/autofill/autofill_agent.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698