Extend EnrollmentHandler to handle consumer management.
[chromium-blink-merge.git] / chrome / browser / ui / autofill / mock_new_credit_card_bubble_controller.h
blobc3b7d9e72b9ea041f2b906a2eadbc1b0abc353b5
1 // Copyright 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.
5 #ifndef CHROME_BROWSER_UI_AUTOFILL_MOCK_NEW_CREDIT_CARD_BUBBLE_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_MOCK_NEW_CREDIT_CARD_BUBBLE_CONTROLLER_H_
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
11 namespace autofill {
13 class AutofillProfile;
14 class CreditCard;
16 class MockNewCreditCardBubbleController {
17 public:
18 MockNewCreditCardBubbleController();
20 ~MockNewCreditCardBubbleController();
22 void Show(scoped_ptr<CreditCard> new_card,
23 scoped_ptr<AutofillProfile> billing_profile);
25 const CreditCard* new_card() const { return new_card_.get(); }
27 const AutofillProfile* billing_profile() const {
28 return billing_profile_.get();
31 int bubbles_shown() const { return bubbles_shown_; }
33 private:
34 scoped_ptr<CreditCard> new_card_;
35 scoped_ptr<AutofillProfile> billing_profile_;
37 int bubbles_shown_;
39 DISALLOW_COPY_AND_ASSIGN(MockNewCreditCardBubbleController);
42 } // namespace autofill
44 #endif // CHROME_BROWSER_UI_AUTOFILL_MOCK_NEW_CREDIT_CARD_BUBBLE_CONTROLLER_H_