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

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

Issue 11000016: Move forms/ out of webkit/. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Response to review Created 8 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 CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DELEGATE_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DELEGATE_H_ 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DELEGATE_H_
7 7
8 namespace webkit {
9 namespace forms {
10 struct PasswordFormFillData;
11 }
12 }
13
14 class PasswordFormManager; 8 class PasswordFormManager;
15 class Profile; 9 class Profile;
16 10
11 struct PasswordFormFillData;
12
17 // An abstraction of operations in the external environment (WebContents) 13 // An abstraction of operations in the external environment (WebContents)
18 // that the PasswordManager depends on. This allows for more targeted 14 // that the PasswordManager depends on. This allows for more targeted
19 // unit testing. 15 // unit testing.
20 class PasswordManagerDelegate { 16 class PasswordManagerDelegate {
21 public: 17 public:
22 PasswordManagerDelegate() {} 18 PasswordManagerDelegate() {}
23 virtual ~PasswordManagerDelegate() {} 19 virtual ~PasswordManagerDelegate() {}
24 20
25 // Fill forms matching |form_data| in |tab_contents|. By default, goes 21 // Fill forms matching |form_data| in |tab_contents|. By default, goes
26 // through the RenderViewHost to FillPasswordForm. Tests can override this 22 // through the RenderViewHost to FillPasswordForm. Tests can override this
27 // to sever the dependency on the entire rendering stack. 23 // to sever the dependency on the entire rendering stack.
28 virtual void FillPasswordForm( 24 virtual void FillPasswordForm(
29 const webkit::forms::PasswordFormFillData& form_data) = 0; 25 const PasswordFormFillData& form_data) = 0;
30 26
31 // A mechanism to show an infobar in the current tab at our request. 27 // A mechanism to show an infobar in the current tab at our request.
32 // The infobar may not show in some circumstances, such as when the one-click 28 // The infobar may not show in some circumstances, such as when the one-click
33 // sign in infobar is or will be shown. 29 // sign in infobar is or will be shown.
34 virtual void AddSavePasswordInfoBarIfPermitted( 30 virtual void AddSavePasswordInfoBarIfPermitted(
35 PasswordFormManager* form_to_save) = 0; 31 PasswordFormManager* form_to_save) = 0;
36 32
37 // Get the profile for which we are managing passwords. 33 // Get the profile for which we are managing passwords.
38 virtual Profile* GetProfile() = 0; 34 virtual Profile* GetProfile() = 0;
39 35
40 // If any SSL certificate errors were encountered as a result of the last 36 // If any SSL certificate errors were encountered as a result of the last
41 // page load. 37 // page load.
42 virtual bool DidLastPageLoadEncounterSSLErrors() = 0; 38 virtual bool DidLastPageLoadEncounterSSLErrors() = 0;
43 39
44 private: 40 private:
45 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDelegate); 41 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDelegate);
46 }; 42 };
47 43
48 44
49 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DELEGATE_H_ 45 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/password_manager.cc ('k') | chrome/browser/password_manager/password_manager_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698