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

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: 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 "chrome/browser/autofill/autofill_cc_import_confirmation_delegate.h"
9
10 #include "base/memory/scoped_ptr.h"
11
12 class AutofillMetrics;
13 class CreditCard;
14 class PersonalDataManager;
15
16 namespace autofill {
17
18 class AutofillCCImportConfirmationHandler
19 : public AutofillCCImportConfirmationDelegate {
20 public:
21 AutofillCCImportConfirmationHandler(scoped_ptr<const CreditCard> credit_card,
22 PersonalDataManager* personal_data,
23 const AutofillMetrics* metric_logger);
24 virtual ~AutofillCCImportConfirmationHandler();
25
26 // AutofillCCImportConfirmationDelegate implementation:
27 virtual void DidShowConfirmation() OVERRIDE;
Ilya Sherman 2013/03/04 21:07:34 nit: IMO it would be fine to go with the shorter n
kaiwang 2013/03/05 01:48:56 Done.
28 virtual void DidAccept() OVERRIDE;
29 virtual void DidDeny() OVERRIDE;
Ilya Sherman 2013/03/04 21:07:34 nit: IMO DidDismiss() would be a better name for t
kaiwang 2013/03/05 01:48:56 Done.
30 virtual void DidCancel() OVERRIDE;
31 virtual void DidIgnore() OVERRIDE;
Ilya Sherman 2013/03/04 21:07:34 Rather than DidIgnore(), define DidClose().
kaiwang 2013/03/05 01:48:56 I think it's more cleaner to just move the logic t
Ilya Sherman 2013/03/05 02:50:39 Yeah, that's fine :)
32
33 private:
34 // The credit card that should be saved if the user accepts the infobar.
35 scoped_ptr<const CreditCard> credit_card_;
36
37 // The personal data manager to which the credit card should be saved.
38 PersonalDataManager* personal_data_; // Weak.
39
40 // For logging UMA metrics.
41 const AutofillMetrics* metric_logger_; // Weak.
42
43 DISALLOW_COPY_AND_ASSIGN(AutofillCCImportConfirmationHandler);
44 };
45
46 } // namespace autofill
47
48 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_IMPORT_CONFIRMATION_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698