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

Side by Side Diff: components/autofill/content/renderer/password_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
« no previous file with comments | « components/autofill/content/renderer/autofill_agent.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PASSWORD_AUTOFILL_AGENT_H_ 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // Called when the user first interacts with the page after a load. This is a 66 // Called when the user first interacts with the page after a load. This is a
67 // signal to make autofilled values of password input elements accessible to 67 // signal to make autofilled values of password input elements accessible to
68 // JavaScript. 68 // JavaScript.
69 void FirstUserGestureObserved(); 69 void FirstUserGestureObserved();
70 70
71 protected: 71 protected:
72 virtual bool OriginCanAccessPasswordManager( 72 virtual bool OriginCanAccessPasswordManager(
73 const blink::WebSecurityOrigin& origin); 73 const blink::WebSecurityOrigin& origin);
74 74
75 private: 75 private:
76 friend class PasswordAutofillAgentTest;
77
78 enum OtherPossibleUsernamesUsage { 76 enum OtherPossibleUsernamesUsage {
79 NOTHING_TO_AUTOFILL, 77 NOTHING_TO_AUTOFILL,
80 OTHER_POSSIBLE_USERNAMES_ABSENT, 78 OTHER_POSSIBLE_USERNAMES_ABSENT,
81 OTHER_POSSIBLE_USERNAMES_PRESENT, 79 OTHER_POSSIBLE_USERNAMES_PRESENT,
82 OTHER_POSSIBLE_USERNAME_SHOWN, 80 OTHER_POSSIBLE_USERNAME_SHOWN,
83 OTHER_POSSIBLE_USERNAME_SELECTED, 81 OTHER_POSSIBLE_USERNAME_SELECTED,
84 OTHER_POSSIBLE_USERNAMES_MAX 82 OTHER_POSSIBLE_USERNAMES_MAX
85 }; 83 };
86 84
87 // Ways to restrict which passwords are saved in ProvisionallySavePassword. 85 // Ways to restrict which passwords are saved in ProvisionallySavePassword.
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 bool did_stop_loading_; 243 bool did_stop_loading_;
246 244
247 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; 245 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_;
248 246
249 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); 247 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent);
250 }; 248 };
251 249
252 } // namespace autofill 250 } // namespace autofill
253 251
254 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ 252 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_
OLDNEW
« no previous file with comments | « components/autofill/content/renderer/autofill_agent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698