| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/string16.h" | 9 #include "base/string16.h" |
| 10 #include "chrome/browser/tab_contents/infobar_delegate.h" | 10 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" |
| 11 | 11 |
| 12 class AutoFillManager; | 12 class AutoFillManager; |
| 13 | 13 |
| 14 // An InfoBar delegate that enables the user to allow or deny storing credit | 14 // An InfoBar delegate that enables the user to allow or deny storing credit |
| 15 // card information gathered from a form submission. | 15 // card information gathered from a form submission. |
| 16 class AutoFillCCInfoBarDelegate : public ConfirmInfoBarDelegate { | 16 class AutoFillCCInfoBarDelegate : public ConfirmInfoBarDelegate { |
| 17 public: | 17 public: |
| 18 AutoFillCCInfoBarDelegate(TabContents* tab_contents, AutoFillManager* host); | 18 AutoFillCCInfoBarDelegate(TabContents* tab_contents, AutoFillManager* host); |
| 19 | 19 |
| 20 private: | 20 private: |
| (...skipping 17 matching lines...) Expand all Loading... |
| 38 virtual InfoBar* CreateInfoBar(); | 38 virtual InfoBar* CreateInfoBar(); |
| 39 #endif // defined(OS_WIN) | 39 #endif // defined(OS_WIN) |
| 40 | 40 |
| 41 // The AutoFillManager that initiated this InfoBar. | 41 // The AutoFillManager that initiated this InfoBar. |
| 42 AutoFillManager* host_; | 42 AutoFillManager* host_; |
| 43 | 43 |
| 44 DISALLOW_COPY_AND_ASSIGN(AutoFillCCInfoBarDelegate); | 44 DISALLOW_COPY_AND_ASSIGN(AutoFillCCInfoBarDelegate); |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ | 47 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ |
| OLD | NEW |