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

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

Issue 563313004: [Password Manager] Unfriend PasswordAutofillAgentTest from PasswordAutofillAgent (clean-up). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporated review comments. Created 6 years, 3 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 <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 // messages to close the Autofill popup when it can't possibly be showing. 223 // messages to close the Autofill popup when it can't possibly be showing.
224 bool is_popup_possibly_visible_; 224 bool is_popup_possibly_visible_;
225 225
226 // True if a message has already been sent about forms for the main frame. 226 // True if a message has already been sent about forms for the main frame.
227 // When the main frame is first loaded, a message is sent even if no forms 227 // When the main frame is first loaded, a message is sent even if no forms
228 // exist in the frame. Otherwise, such messages are supressed. 228 // exist in the frame. Otherwise, such messages are supressed.
229 bool main_frame_processed_; 229 bool main_frame_processed_;
230 230
231 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; 231 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_;
232 232
233 friend class PasswordAutofillAgentTest;
234 friend class RequestAutocompleteRendererTest;
235 FRIEND_TEST_ALL_PREFIXES(AutofillRendererTest, FillFormElement);
236 FRIEND_TEST_ALL_PREFIXES(AutofillRendererTest, SendDynamicForms);
237 FRIEND_TEST_ALL_PREFIXES(AutofillRendererTest, ShowAutofillWarning);
238 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillAgentTest, WaitUsername);
239 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillAgentTest, SuggestionAccept);
240 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillAgentTest, SuggestionSelect);
241 FRIEND_TEST_ALL_PREFIXES(
242 PasswordAutofillAgentTest,
243 PasswordAutofillTriggersOnChangeEventsWaitForUsername);
244 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillAgentTest, CredentialsOnClick);
245 FRIEND_TEST_ALL_PREFIXES(RequestAutocompleteRendererTest,
246 NoCancelOnMainFrameNavigateAfterDone);
247 FRIEND_TEST_ALL_PREFIXES(RequestAutocompleteRendererTest,
248 NoCancelOnSubframeNavigateAfterDone);
249 FRIEND_TEST_ALL_PREFIXES(RequestAutocompleteRendererTest,
250 InvokingTwiceOnlyShowsOnce);
251
252 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); 233 DISALLOW_COPY_AND_ASSIGN(AutofillAgent);
253 }; 234 };
254 235
255 } // namespace autofill 236 } // namespace autofill
256 237
257 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ 238 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_
OLDNEW
« no previous file with comments | « chrome/test/base/chrome_render_view_test.cc ('k') | components/autofill/content/renderer/password_autofill_agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698