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_AUTOFILL_AUTOFILL_MANAGER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_DELEGATE_H_ |
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_DELEGATE_H_ | 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_DELEGATE_H_ |
7 | 7 |
8 namespace autofill { | 8 namespace autofill { |
9 class PasswordGenerator; | 9 class PasswordGenerator; |
10 } | 10 } |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 class BrowserContext; | 13 class BrowserContext; |
| 14 struct PasswordForm; |
14 } | 15 } |
15 | 16 |
16 namespace gfx { | 17 namespace gfx { |
17 class Rect; | 18 class Rect; |
18 } | 19 } |
19 | 20 |
20 namespace webkit { | |
21 namespace forms { | |
22 struct PasswordForm; | |
23 } | |
24 } | |
25 | |
26 class InfoBarService; | 21 class InfoBarService; |
27 class PrefServiceBase; | 22 class PrefServiceBase; |
28 class Profile; | 23 class Profile; |
29 class ProfileSyncServiceBase; | 24 class ProfileSyncServiceBase; |
30 | 25 |
31 namespace autofill { | 26 namespace autofill { |
32 | 27 |
33 // A delegate interface that needs to be supplied to AutofillManager | 28 // A delegate interface that needs to be supplied to AutofillManager |
34 // by the embedder. | 29 // by the embedder. |
35 // | 30 // |
(...skipping 30 matching lines...) Expand all Loading... |
66 // delegate. | 61 // delegate. |
67 virtual bool IsSavingPasswordsEnabled() const = 0; | 62 virtual bool IsSavingPasswordsEnabled() const = 0; |
68 | 63 |
69 // Causes the Autofill settings UI to be shown. | 64 // Causes the Autofill settings UI to be shown. |
70 virtual void ShowAutofillSettings() = 0; | 65 virtual void ShowAutofillSettings() = 0; |
71 | 66 |
72 // Causes the password generation bubble UI to be shown using the | 67 // Causes the password generation bubble UI to be shown using the |
73 // specified form with the given bounds. | 68 // specified form with the given bounds. |
74 virtual void ShowPasswordGenerationBubble( | 69 virtual void ShowPasswordGenerationBubble( |
75 const gfx::Rect& bounds, | 70 const gfx::Rect& bounds, |
76 const webkit::forms::PasswordForm& form, | 71 const content::PasswordForm& form, |
77 autofill::PasswordGenerator* generator) = 0; | 72 autofill::PasswordGenerator* generator) = 0; |
78 }; | 73 }; |
79 | 74 |
80 } // namespace autofill | 75 } // namespace autofill |
81 | 76 |
82 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_DELEGATE_H_ | 77 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_DELEGATE_H_ |
OLD | NEW |