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

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

Issue 105193002: Replace string16 with base::string16. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | Annotate | Revision Log
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 virtual ~AutofillCCInfoBarDelegate(); 49 virtual ~AutofillCCInfoBarDelegate();
50 50
51 void LogUserAction(AutofillMetrics::InfoBarMetric user_action); 51 void LogUserAction(AutofillMetrics::InfoBarMetric user_action);
52 52
53 // ConfirmInfoBarDelegate: 53 // ConfirmInfoBarDelegate:
54 virtual void InfoBarDismissed() OVERRIDE; 54 virtual void InfoBarDismissed() OVERRIDE;
55 virtual int GetIconID() const OVERRIDE; 55 virtual int GetIconID() const OVERRIDE;
56 virtual Type GetInfoBarType() const OVERRIDE; 56 virtual Type GetInfoBarType() const OVERRIDE;
57 virtual bool ShouldExpireInternal( 57 virtual bool ShouldExpireInternal(
58 const content::LoadCommittedDetails& details) const OVERRIDE; 58 const content::LoadCommittedDetails& details) const OVERRIDE;
59 virtual string16 GetMessageText() const OVERRIDE; 59 virtual base::string16 GetMessageText() const OVERRIDE;
60 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; 60 virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE;
61 virtual bool Accept() OVERRIDE; 61 virtual bool Accept() OVERRIDE;
62 virtual bool Cancel() OVERRIDE; 62 virtual bool Cancel() OVERRIDE;
63 virtual string16 GetLinkText() const OVERRIDE; 63 virtual base::string16 GetLinkText() const OVERRIDE;
64 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE; 64 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE;
65 65
66 // For logging UMA metrics. 66 // For logging UMA metrics.
67 // Weak reference. Owned by the AutofillManager that initiated this infobar. 67 // Weak reference. Owned by the AutofillManager that initiated this infobar.
68 const AutofillMetrics* metric_logger_; 68 const AutofillMetrics* metric_logger_;
69 69
70 // The callback to save credit card if the user accepts the infobar. 70 // The callback to save credit card if the user accepts the infobar.
71 base::Closure save_card_callback_; 71 base::Closure save_card_callback_;
72 72
73 // Did the user ever explicitly accept or dismiss this infobar? 73 // Did the user ever explicitly accept or dismiss this infobar?
74 bool had_user_interaction_; 74 bool had_user_interaction_;
75 75
76 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, CreditCardInfoBar); 76 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, CreditCardInfoBar);
77 77
78 DISALLOW_COPY_AND_ASSIGN(AutofillCCInfoBarDelegate); 78 DISALLOW_COPY_AND_ASSIGN(AutofillCCInfoBarDelegate);
79 }; 79 };
80 80
81 } // namespace autofill 81 } // namespace autofill
82 82
83 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ 83 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_browsertest.cc ('k') | chrome/browser/autofill/autofill_cc_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698