Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1358)

Side by Side Diff: chrome/browser/autofill/autofill_cc_infobar_delegate.h

Issue 15067008: [InfoBar] Add InfoBarDelegate::GetIconID() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit fixes redux Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 28 matching lines...) Expand all
39 private: 39 private:
40 AutofillCCInfoBarDelegate(InfoBarService* infobar_service, 40 AutofillCCInfoBarDelegate(InfoBarService* infobar_service,
41 const AutofillMetrics* metric_logger, 41 const AutofillMetrics* metric_logger,
42 const base::Closure& save_card_callback); 42 const base::Closure& save_card_callback);
43 virtual ~AutofillCCInfoBarDelegate(); 43 virtual ~AutofillCCInfoBarDelegate();
44 44
45 void LogUserAction(AutofillMetrics::InfoBarMetric user_action); 45 void LogUserAction(AutofillMetrics::InfoBarMetric user_action);
46 46
47 // ConfirmInfoBarDelegate: 47 // ConfirmInfoBarDelegate:
48 virtual void InfoBarDismissed() OVERRIDE; 48 virtual void InfoBarDismissed() OVERRIDE;
49 virtual gfx::Image* GetIcon() const OVERRIDE; 49 virtual int GetIconID() const OVERRIDE;
50 virtual Type GetInfoBarType() const OVERRIDE; 50 virtual Type GetInfoBarType() const OVERRIDE;
51 virtual bool ShouldExpireInternal( 51 virtual bool ShouldExpireInternal(
52 const content::LoadCommittedDetails& details) const OVERRIDE; 52 const content::LoadCommittedDetails& details) const OVERRIDE;
53 virtual string16 GetMessageText() const OVERRIDE; 53 virtual string16 GetMessageText() const OVERRIDE;
54 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; 54 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE;
55 virtual bool Accept() OVERRIDE; 55 virtual bool Accept() OVERRIDE;
56 virtual bool Cancel() OVERRIDE; 56 virtual bool Cancel() OVERRIDE;
57 virtual string16 GetLinkText() const OVERRIDE; 57 virtual string16 GetLinkText() const OVERRIDE;
58 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE; 58 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE;
59 59
60 // For logging UMA metrics. 60 // For logging UMA metrics.
61 // Weak reference. Owned by the AutofillManager that initiated this infobar. 61 // Weak reference. Owned by the AutofillManager that initiated this infobar.
62 const AutofillMetrics* metric_logger_; 62 const AutofillMetrics* metric_logger_;
63 63
64 // The callback to save credit card if the user accepts the infobar. 64 // The callback to save credit card if the user accepts the infobar.
65 base::Closure save_card_callback_; 65 base::Closure save_card_callback_;
66 66
67 // Did the user ever explicitly accept or dismiss this infobar? 67 // Did the user ever explicitly accept or dismiss this infobar?
68 bool had_user_interaction_; 68 bool had_user_interaction_;
69 69
70 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, CreditCardInfoBar); 70 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, CreditCardInfoBar);
71 71
72 DISALLOW_COPY_AND_ASSIGN(AutofillCCInfoBarDelegate); 72 DISALLOW_COPY_AND_ASSIGN(AutofillCCInfoBarDelegate);
73 }; 73 };
74 74
75 } // namespace autofill 75 } // namespace autofill
76 76
77 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ 77 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698