OLD | NEW |
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 #pragma once | 7 #pragma once |
8 | 8 |
9 namespace webkit { | 9 namespace webkit { |
10 namespace forms { | 10 namespace forms { |
11 struct PasswordFormFillData; | 11 struct PasswordFormFillData; |
12 } | 12 } |
13 } | 13 } |
14 | 14 |
15 class PasswordFormManager; | 15 class PasswordFormManager; |
16 class Profile; | 16 class Profile; |
17 | 17 |
18 // An abstraction of operations in the external environment (TabContents) | 18 // An abstraction of operations in the external environment (WebContents) |
19 // that the PasswordManager depends on. This allows for more targeted | 19 // that the PasswordManager depends on. This allows for more targeted |
20 // unit testing. | 20 // unit testing. |
21 class PasswordManagerDelegate { | 21 class PasswordManagerDelegate { |
22 public: | 22 public: |
23 PasswordManagerDelegate() {} | 23 PasswordManagerDelegate() {} |
24 virtual ~PasswordManagerDelegate() {} | 24 virtual ~PasswordManagerDelegate() {} |
25 | 25 |
26 // Fill forms matching |form_data| in |tab_contents|. By default, goes | 26 // Fill forms matching |form_data| in |tab_contents|. By default, goes |
27 // through the RenderViewHost to FillPasswordForm. Tests can override this | 27 // through the RenderViewHost to FillPasswordForm. Tests can override this |
28 // to sever the dependency on the entire rendering stack. | 28 // to sever the dependency on the entire rendering stack. |
(...skipping 12 matching lines...) Expand all Loading... |
41 // If any SSL certificate errors were encountered as a result of the last | 41 // If any SSL certificate errors were encountered as a result of the last |
42 // page load. | 42 // page load. |
43 virtual bool DidLastPageLoadEncounterSSLErrors() = 0; | 43 virtual bool DidLastPageLoadEncounterSSLErrors() = 0; |
44 | 44 |
45 private: | 45 private: |
46 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDelegate); | 46 DISALLOW_COPY_AND_ASSIGN(PasswordManagerDelegate); |
47 }; | 47 }; |
48 | 48 |
49 | 49 |
50 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DELEGATE_H_ | 50 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_DELEGATE_H_ |
OLD | NEW |