| 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 12 matching lines...) Expand all Loading... |
| 33 virtual string16 GetLinkText(); | 33 virtual string16 GetLinkText(); |
| 34 virtual bool LinkClicked(WindowOpenDisposition disposition); | 34 virtual bool LinkClicked(WindowOpenDisposition disposition); |
| 35 | 35 |
| 36 // The AutoFillManager that initiated this InfoBar. | 36 // The AutoFillManager that initiated this InfoBar. |
| 37 AutoFillManager* host_; | 37 AutoFillManager* host_; |
| 38 | 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(AutoFillCCInfoBarDelegate); | 39 DISALLOW_COPY_AND_ASSIGN(AutoFillCCInfoBarDelegate); |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ | 42 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ |
| OLD | NEW |