| 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/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/string16.h" | 12 #include "base/string16.h" |
| 13 #include "chrome/browser/autofill/autofill_metrics.h" | 13 #include "chrome/browser/autofill/autofill_metrics.h" |
| 14 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" | 14 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" |
| 15 #include "webkit/glue/window_open_disposition.h" | 15 #include "webkit/glue/window_open_disposition.h" |
| 16 | 16 |
| 17 class CreditCard; | 17 class CreditCard; |
| 18 class PersonalDataManager; | 18 class PersonalDataManager; |
| 19 class SkBitmap; | 19 |
| 20 class TabContents; | |
| 21 namespace content { | 20 namespace content { |
| 22 struct LoadCommittedDetails; | 21 struct LoadCommittedDetails; |
| 23 } | 22 } |
| 24 | 23 |
| 25 // An InfoBar delegate that enables the user to allow or deny storing credit | 24 // An InfoBar delegate that enables the user to allow or deny storing credit |
| 26 // card information gathered from a form submission. | 25 // card information gathered from a form submission. |
| 27 class AutofillCCInfoBarDelegate : public ConfirmInfoBarDelegate { | 26 class AutofillCCInfoBarDelegate : public ConfirmInfoBarDelegate { |
| 28 public: | 27 public: |
| 29 AutofillCCInfoBarDelegate(InfoBarTabHelper* infobar_helper, | 28 AutofillCCInfoBarDelegate(InfoBarTabHelper* infobar_helper, |
| 30 const CreditCard* credit_card, | 29 const CreditCard* credit_card, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 61 |
| 63 // Did the user ever explicitly accept or dismiss this infobar? | 62 // Did the user ever explicitly accept or dismiss this infobar? |
| 64 bool had_user_interaction_; | 63 bool had_user_interaction_; |
| 65 | 64 |
| 66 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, CreditCardInfoBar); | 65 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, CreditCardInfoBar); |
| 67 | 66 |
| 68 DISALLOW_COPY_AND_ASSIGN(AutofillCCInfoBarDelegate); | 67 DISALLOW_COPY_AND_ASSIGN(AutofillCCInfoBarDelegate); |
| 69 }; | 68 }; |
| 70 | 69 |
| 71 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ | 70 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ |
| OLD | NEW |