OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_CC_INFOBAR_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ |
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ | 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "chrome/browser/tab_contents/infobar_delegate.h" | 11 #include "chrome/browser/tab_contents/infobar_delegate.h" |
12 | 12 |
13 class AutoFillManager; | 13 class AutoFillManager; |
| 14 class Browser; |
14 class SkBitmap; | 15 class SkBitmap; |
15 class TabContents; | 16 class TabContents; |
16 | 17 |
17 // An InfoBar delegate that enables the user to allow or deny storing credit | 18 // An InfoBar delegate that enables the user to allow or deny storing credit |
18 // card information gathered from a form submission. | 19 // card information gathered from a form submission. |
19 class AutoFillCCInfoBarDelegate : public ConfirmInfoBarDelegate { | 20 class AutoFillCCInfoBarDelegate : public ConfirmInfoBarDelegate { |
20 public: | 21 public: |
21 AutoFillCCInfoBarDelegate(TabContents* tab_contents, AutoFillManager* host); | 22 AutoFillCCInfoBarDelegate(TabContents* tab_contents, AutoFillManager* host); |
22 virtual ~AutoFillCCInfoBarDelegate(); | 23 virtual ~AutoFillCCInfoBarDelegate(); |
23 | 24 |
(...skipping 14 matching lines...) Expand all Loading... |
38 #if defined(OS_WIN) | 39 #if defined(OS_WIN) |
39 // Overridden from InfoBarDelegate: | 40 // Overridden from InfoBarDelegate: |
40 virtual InfoBar* CreateInfoBar(); | 41 virtual InfoBar* CreateInfoBar(); |
41 #endif // defined(OS_WIN) | 42 #endif // defined(OS_WIN) |
42 | 43 |
43 virtual Type GetInfoBarType() { | 44 virtual Type GetInfoBarType() { |
44 return PAGE_ACTION_TYPE; | 45 return PAGE_ACTION_TYPE; |
45 } | 46 } |
46 | 47 |
47 private: | 48 private: |
| 49 // The browser. |
| 50 Browser* browser_; |
| 51 |
48 // The AutoFillManager that initiated this InfoBar. | 52 // The AutoFillManager that initiated this InfoBar. |
49 AutoFillManager* host_; | 53 AutoFillManager* host_; |
50 | 54 |
51 DISALLOW_COPY_AND_ASSIGN(AutoFillCCInfoBarDelegate); | 55 DISALLOW_COPY_AND_ASSIGN(AutoFillCCInfoBarDelegate); |
52 }; | 56 }; |
53 | 57 |
54 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ | 58 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ |
OLD | NEW |