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

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

Issue 6926001: Replace the virtual InfoBarDelegate::InfoBarClosed() function with a non-virtual one. This is a ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | 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 #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"
(...skipping 18 matching lines...) Expand all
29 PersonalDataManager* personal_data, 29 PersonalDataManager* personal_data,
30 const AutofillMetrics* metric_logger); 30 const AutofillMetrics* metric_logger);
31 31
32 private: 32 private:
33 virtual ~AutofillCCInfoBarDelegate(); 33 virtual ~AutofillCCInfoBarDelegate();
34 34
35 void LogUserAction(AutofillMetrics::InfoBarMetric user_action); 35 void LogUserAction(AutofillMetrics::InfoBarMetric user_action);
36 36
37 // ConfirmInfoBarDelegate: 37 // ConfirmInfoBarDelegate:
38 virtual bool ShouldExpire( 38 virtual bool ShouldExpire(
39 const NavigationController::LoadCommittedDetails& details) const; 39 const NavigationController::LoadCommittedDetails& details) const OVERRIDE;
40 virtual void InfoBarClosed(); 40 virtual void InfoBarDismissed() OVERRIDE;
41 virtual void InfoBarDismissed(); 41 virtual gfx::Image* GetIcon() const OVERRIDE;
42 virtual gfx::Image* GetIcon() const; 42 virtual Type GetInfoBarType() const OVERRIDE;
43 virtual Type GetInfoBarType() const; 43 virtual string16 GetMessageText() const OVERRIDE;
44 virtual string16 GetMessageText() const; 44 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE;
45 virtual string16 GetButtonLabel(InfoBarButton button) const; 45 virtual bool Accept() OVERRIDE;
46 virtual bool Accept(); 46 virtual bool Cancel() OVERRIDE;
47 virtual bool Cancel(); 47 virtual string16 GetLinkText() OVERRIDE;
48 virtual string16 GetLinkText(); 48 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE;
49 virtual bool LinkClicked(WindowOpenDisposition disposition);
50 49
51 // The credit card that should be saved if the user accepts the infobar. 50 // The credit card that should be saved if the user accepts the infobar.
52 scoped_ptr<const CreditCard> credit_card_; 51 scoped_ptr<const CreditCard> credit_card_;
53 52
54 // The personal data manager to which the credit card should be saved. 53 // The personal data manager to which the credit card should be saved.
55 // Weak reference. 54 // Weak reference.
56 PersonalDataManager* personal_data_; 55 PersonalDataManager* personal_data_;
57 56
58 // For logging UMA metrics. 57 // For logging UMA metrics.
59 // Weak reference. Owned by the AutofillManager that initiated this infobar. 58 // Weak reference. Owned by the AutofillManager that initiated this infobar.
60 const AutofillMetrics* metric_logger_; 59 const AutofillMetrics* metric_logger_;
61 60
62 // Did the user ever explicitly accept or dismiss this infobar? 61 // Did the user ever explicitly accept or dismiss this infobar?
63 bool had_user_interaction_; 62 bool had_user_interaction_;
64 63
65 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, CreditCardInfoBar); 64 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, CreditCardInfoBar);
66 65
67 DISALLOW_COPY_AND_ASSIGN(AutofillCCInfoBarDelegate); 66 DISALLOW_COPY_AND_ASSIGN(AutofillCCInfoBarDelegate);
68 }; 67 };
69 68
70 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ 69 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/alternate_nav_url_fetcher.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