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

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: LowerCaseEqualsASCII 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
« no previous file with comments | « no previous file | chrome/renderer/autofill/autofill_agent.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 // Have we already shown Autofill suggestions for the field the user is 199 // Have we already shown Autofill suggestions for the field the user is
200 // currently editing? Used to keep track of state for metrics logging. 200 // currently editing? Used to keep track of state for metrics logging.
201 bool has_shown_autofill_popup_for_current_edit_; 201 bool has_shown_autofill_popup_for_current_edit_;
202 202
203 // If true we just set the node text so we shouldn't show the popup. 203 // If true we just set the node text so we shouldn't show the popup.
204 bool did_set_node_text_; 204 bool did_set_node_text_;
205 205
206 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; 206 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_;
207 207
208 friend class PasswordAutofillManagerTest; 208 friend class PasswordAutofillManagerTest;
209 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, FillFormElement);
209 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, SendForms); 210 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, SendForms);
210 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, FillFormElement); 211 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, ShowAutofillWarning);
211 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername); 212 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername);
212 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept); 213 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept);
213 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect); 214 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect);
214 215
215 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); 216 DISALLOW_COPY_AND_ASSIGN(AutofillAgent);
216 }; 217 };
217 218
218 } // namespace autofill 219 } // namespace autofill
219 220
220 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ 221 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/autofill/autofill_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698