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

Side by Side Diff: chrome/browser/password_manager/password_form_manager.h

Issue 15660018: [autofill] Add support for PSL domain matching for password autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments from isherman and aurimas Created 7 years, 6 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 | 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_BROWSER_PASSWORD_MANAGER_PASSWORD_FORM_MANAGER_H_ 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_FORM_MANAGER_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_FORM_MANAGER_H_ 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_FORM_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 bool HasCompletedMatching(); 72 bool HasCompletedMatching();
73 73
74 // Determines if the user opted to 'never remember' passwords for this form. 74 // Determines if the user opted to 'never remember' passwords for this form.
75 bool IsBlacklisted(); 75 bool IsBlacklisted();
76 76
77 // Used by PasswordManager to determine whether or not to display 77 // Used by PasswordManager to determine whether or not to display
78 // a SavePasswordBar when given the green light to save the PasswordForm 78 // a SavePasswordBar when given the green light to save the PasswordForm
79 // managed by this. 79 // managed by this.
80 bool IsNewLogin(); 80 bool IsNewLogin();
81 81
82 // Returns true if the current pending credentials were found using
83 // origin matching of the public suffix, instead of the signon realm of the
84 // form.
85 bool IsPendingCredentialsPublicSuffixMatch();
86
82 // Checks if the form is a valid password form. Forms which lack either 87 // Checks if the form is a valid password form. Forms which lack either
83 // login or password field are not considered valid. 88 // login or password field are not considered valid.
84 bool HasValidPasswordForm(); 89 bool HasValidPasswordForm();
85 90
86 // These functions are used to determine if this form has had it's password 91 // These functions are used to determine if this form has had it's password
87 // auto generated by the browser. 92 // auto generated by the browser.
88 bool HasGeneratedPassword(); 93 bool HasGeneratedPassword();
89 void SetHasGeneratedPassword(); 94 void SetHasGeneratedPassword();
90 95
91 // Determines if we need to autofill given the results of the query. 96 // Determines if we need to autofill given the results of the query.
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 // These three fields record the "ActionsTaken" by the browser and 288 // These three fields record the "ActionsTaken" by the browser and
284 // the user with this form, and the result. They are combined and 289 // the user with this form, and the result. They are combined and
285 // recorded in UMA when the manager is destroyed. 290 // recorded in UMA when the manager is destroyed.
286 ManagerAction manager_action_; 291 ManagerAction manager_action_;
287 UserAction user_action_; 292 UserAction user_action_;
288 SubmitResult submit_result_; 293 SubmitResult submit_result_;
289 294
290 DISALLOW_COPY_AND_ASSIGN(PasswordFormManager); 295 DISALLOW_COPY_AND_ASSIGN(PasswordFormManager);
291 }; 296 };
292 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_FORM_MANAGER_H_ 297 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_FORM_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698