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

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

Issue 12378055: Make autofill stop depending on InfoBarService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests Created 7 years, 9 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
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_IMPORT_CONFIRMATION_HANDLER_H_
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_IMPORT_CONFIRMATION_HANDLER_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/autofill/autofill_cc_import_confirmation_delegate.h"
10
11 class AutofillMetrics;
12 class CreditCard;
13 class PersonalDataManager;
14
15 namespace autofill {
16
17 class AutofillCCImportConfirmationHandler
Ilya Sherman 2013/03/05 04:37:39 To potentially save a round-trip in reviewing: If
kaiwang 2013/03/05 18:38:16 Sounds good, thanks!
18 : public AutofillCCImportConfirmationDelegate {
19 public:
20 AutofillCCImportConfirmationHandler(scoped_ptr<const CreditCard> credit_card,
21 PersonalDataManager* personal_data,
22 const AutofillMetrics* metric_logger);
23 virtual ~AutofillCCImportConfirmationHandler();
24
25 // AutofillCCImportConfirmationDelegate implementation:
26 virtual void DidShow() OVERRIDE;
27 virtual void DidAccept() OVERRIDE;
28 virtual void DidCancel() OVERRIDE;
29 virtual void DidDismiss() OVERRIDE;
30
31 private:
32 // The credit card that should be saved if the user accepts the infobar.
33 scoped_ptr<const CreditCard> credit_card_;
34
35 // The personal data manager to which the credit card should be saved.
36 PersonalDataManager* personal_data_; // Weak.
37
38 // For logging UMA metrics.
39 const AutofillMetrics* metric_logger_; // Weak.
40
41 // Did the user ever explicitly accept, deny or dismiss this infobar?
42 bool had_user_interaction_;
43
44 DISALLOW_COPY_AND_ASSIGN(AutofillCCImportConfirmationHandler);
45 };
46
47 } // namespace autofill
48
49 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_IMPORT_CONFIRMATION_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698