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

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: Mostly cosmetic fixup 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 { 8 namespace content {
9 namespace forms {
10 struct PasswordFormFillData; 9 struct PasswordFormFillData;
11 } 10 }
12 }
13 11
14 class PasswordFormManager; 12 class PasswordFormManager;
15 class Profile; 13 class Profile;
16 14
17 // An abstraction of operations in the external environment (WebContents) 15 // An abstraction of operations in the external environment (WebContents)
18 // that the PasswordManager depends on. This allows for more targeted 16 // that the PasswordManager depends on. This allows for more targeted
19 // unit testing. 17 // unit testing.
20 class PasswordManagerDelegate { 18 class PasswordManagerDelegate {
21 public: 19 public:
22 PasswordManagerDelegate() {} 20 PasswordManagerDelegate() {}
23 virtual ~PasswordManagerDelegate() {} 21 virtual ~PasswordManagerDelegate() {}
24 22
25 // Fill forms matching |form_data| in |tab_contents|. By default, goes 23 // Fill forms matching |form_data| in |tab_contents|. By default, goes
26 // through the RenderViewHost to FillPasswordForm. Tests can override this 24 // through the RenderViewHost to FillPasswordForm. Tests can override this
27 // to sever the dependency on the entire rendering stack. 25 // to sever the dependency on the entire rendering stack.
28 virtual void FillPasswordForm( 26 virtual void FillPasswordForm(
29 const webkit::forms::PasswordFormFillData& form_data) = 0; 27 const content::PasswordFormFillData& form_data) = 0;
30 28
31 // A mechanism to show an infobar in the current tab at our request. 29 // 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 30 // The infobar may not show in some circumstances, such as when the one-click
33 // sign in infobar is or will be shown. 31 // sign in infobar is or will be shown.
34 virtual void AddSavePasswordInfoBarIfPermitted( 32 virtual void AddSavePasswordInfoBarIfPermitted(
35 PasswordFormManager* form_to_save) = 0; 33 PasswordFormManager* form_to_save) = 0;
36 34
37 // Get the profile for which we are managing passwords. 35 // Get the profile for which we are managing passwords.
38 virtual Profile* GetProfile() = 0; 36 virtual Profile* GetProfile() = 0;
39 37
40 // If any SSL certificate errors were encountered as a result of the last 38 // If any SSL certificate errors were encountered as a result of the last
41 // page load. 39 // page load.
42 virtual bool DidLastPageLoadEncounterSSLErrors() = 0; 40 virtual bool DidLastPageLoadEncounterSSLErrors() = 0;
43 41
44 private: 42 private:
45 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDelegate); 43 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDelegate);
46 }; 44 };
47 45
48 46
49 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DELEGATE_H_ 47 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698