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

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

Issue 103503002: Ignore autocomplete='off' for usernames and passwords. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits from gcasto Created 7 years 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_MANAGER_H_ 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 private: 105 private:
106 friend class content::WebContentsUserData<PasswordManager>; 106 friend class content::WebContentsUserData<PasswordManager>;
107 107
108 enum ProvisionalSaveFailure { 108 enum ProvisionalSaveFailure {
109 SAVING_DISABLED, 109 SAVING_DISABLED,
110 EMPTY_PASSWORD, 110 EMPTY_PASSWORD,
111 NO_MATCHING_FORM, 111 NO_MATCHING_FORM,
112 MATCHING_NOT_COMPLETE, 112 MATCHING_NOT_COMPLETE,
113 FORM_BLACKLISTED, 113 FORM_BLACKLISTED,
114 INVALID_FORM, 114 INVALID_FORM,
115 AUTOCOMPLETE_OFF,
116 MAX_FAILURE_VALUE 115 MAX_FAILURE_VALUE
117 }; 116 };
118 117
119 // Log failure for UMA. Logs additional metrics if the |form_origin| 118 // Log failure for UMA. Logs additional metrics if the |form_origin|
120 // corresponds to one of the top, explicitly monitored websites. 119 // corresponds to one of the top, explicitly monitored websites.
121 void RecordFailure(ProvisionalSaveFailure failure, 120 void RecordFailure(ProvisionalSaveFailure failure,
122 const std::string& form_origin); 121 const std::string& form_origin);
123 122
124 // Possibly set up FieldTrial for testing other possible usernames. This only 123 // Possibly set up FieldTrial for testing other possible usernames. This only
125 // happens if there are other_possible_usernames to be shown and the 124 // happens if there are other_possible_usernames to be shown and the
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // notification in const member functions. 173 // notification in const member functions.
175 mutable ObserverList<LoginModelObserver> observers_; 174 mutable ObserverList<LoginModelObserver> observers_;
176 175
177 // Callbacks to be notified when a password form has been submitted. 176 // Callbacks to be notified when a password form has been submitted.
178 std::vector<PasswordSubmittedCallback> submission_callbacks_; 177 std::vector<PasswordSubmittedCallback> submission_callbacks_;
179 178
180 DISALLOW_COPY_AND_ASSIGN(PasswordManager); 179 DISALLOW_COPY_AND_ASSIGN(PasswordManager);
181 }; 180 };
182 181
183 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ 182 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/password_form_manager.h ('k') | chrome/browser/password_manager/password_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698