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

Side by Side Diff: components/password_manager/core/browser/password_form_manager.h

Issue 548953002: [Password Manager] Modified to support saving passwords on forms without username fields. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed breakages. Created 6 years, 2 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 (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 COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_FORM_MANAGER_H_ 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_FORM_MANAGER_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_FORM_MANAGER_H_ 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_FORM_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // Used by PasswordManager to determine whether or not to display 93 // Used by PasswordManager to determine whether or not to display
94 // a SavePasswordBar when given the green light to save the PasswordForm 94 // a SavePasswordBar when given the green light to save the PasswordForm
95 // managed by this. 95 // managed by this.
96 bool IsNewLogin(); 96 bool IsNewLogin();
97 97
98 // Returns true if the current pending credentials were found using 98 // Returns true if the current pending credentials were found using
99 // origin matching of the public suffix, instead of the signon realm of the 99 // origin matching of the public suffix, instead of the signon realm of the
100 // form. 100 // form.
101 bool IsPendingCredentialsPublicSuffixMatch(); 101 bool IsPendingCredentialsPublicSuffixMatch();
102 102
103 // Checks if the form is a valid password form. Forms which lack either 103 // Checks if the form is a valid password form. Forms which lack password
104 // login or password field are not considered valid. 104 // field are not considered valid.
105 bool HasValidPasswordForm(); 105 bool HasValidPasswordForm();
106 106
107 // These functions are used to determine if this form has had it's password 107 // These functions are used to determine if this form has had it's password
108 // auto generated by the browser. 108 // auto generated by the browser.
109 bool HasGeneratedPassword(); 109 bool HasGeneratedPassword();
110 void SetHasGeneratedPassword(); 110 void SetHasGeneratedPassword();
111 111
112 // Determines if we need to autofill given the results of the query. 112 // Determines if we need to autofill given the results of the query.
113 // Takes ownership of the elements in |result|. 113 // Takes ownership of the elements in |result|.
114 void OnRequestDone(const std::vector<autofill::PasswordForm*>& result); 114 void OnRequestDone(const std::vector<autofill::PasswordForm*>& result);
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 ManagerAction manager_action_; 334 ManagerAction manager_action_;
335 UserAction user_action_; 335 UserAction user_action_;
336 SubmitResult submit_result_; 336 SubmitResult submit_result_;
337 337
338 DISALLOW_COPY_AND_ASSIGN(PasswordFormManager); 338 DISALLOW_COPY_AND_ASSIGN(PasswordFormManager);
339 }; 339 };
340 340
341 } // namespace password_manager 341 } // namespace password_manager
342 342
343 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_FORM_MANAGER_H_ 343 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_FORM_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698