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: chrome/browser/password_manager/password_manager.h

Issue 133893004: Allow deleting autofill password suggestions on Shift+Delete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Allow Password autofill suggestions deletion Created 6 years, 10 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 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 const content::LoadCommittedDetails& details, 85 const content::LoadCommittedDetails& details,
86 const content::FrameNavigateParams& params) OVERRIDE; 86 const content::FrameNavigateParams& params) OVERRIDE;
87 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 87 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
88 88
89 // TODO(isherman): This should not be public, but is currently being used by 89 // TODO(isherman): This should not be public, but is currently being used by
90 // the LoginPrompt code. 90 // the LoginPrompt code.
91 void OnPasswordFormsParsed( 91 void OnPasswordFormsParsed(
92 const std::vector<autofill::PasswordForm>& forms); 92 const std::vector<autofill::PasswordForm>& forms);
93 void OnPasswordFormsRendered( 93 void OnPasswordFormsRendered(
94 const std::vector<autofill::PasswordForm>& visible_forms); 94 const std::vector<autofill::PasswordForm>& visible_forms);
95 void OnRemovePasswordSuggestion(const autofill::PasswordForm& password_form);
95 96
96 protected: 97 protected:
97 // Subclassed for unit tests. 98 // Subclassed for unit tests.
98 PasswordManager(content::WebContents* web_contents, 99 PasswordManager(content::WebContents* web_contents,
99 PasswordManagerDelegate* delegate); 100 PasswordManagerDelegate* delegate);
100 101
101 // Handle notification that a password form was submitted. 102 // Handle notification that a password form was submitted.
102 virtual void OnPasswordFormSubmitted( 103 virtual void OnPasswordFormSubmitted(
103 const autofill::PasswordForm& password_form); 104 const autofill::PasswordForm& password_form);
104 105
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 // notification in const member functions. 174 // notification in const member functions.
174 mutable ObserverList<LoginModelObserver> observers_; 175 mutable ObserverList<LoginModelObserver> observers_;
175 176
176 // Callbacks to be notified when a password form has been submitted. 177 // Callbacks to be notified when a password form has been submitted.
177 std::vector<PasswordSubmittedCallback> submission_callbacks_; 178 std::vector<PasswordSubmittedCallback> submission_callbacks_;
178 179
179 DISALLOW_COPY_AND_ASSIGN(PasswordManager); 180 DISALLOW_COPY_AND_ASSIGN(PasswordManager);
180 }; 181 };
181 182
182 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ 183 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698