summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/autofill/card_unmask_prompt_view.h
blob: b923390d1d06d915fb6d8d0aede07761501f03ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_H_
#define CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_H_

namespace autofill {

class CardUnmaskPromptController;

// The cross-platform UI interface which prompts the user to unlock a masked
// Wallet instrument (credit card). This object is responsible for its own
// lifetime.
class CardUnmaskPromptView {
 public:
  static CardUnmaskPromptView* CreateAndShow(
      CardUnmaskPromptController* controller);

  virtual void ControllerGone() = 0;
  virtual void DisableAndWaitForVerification() = 0;
  virtual void VerificationSucceeded() = 0;
  virtual void VerificationFailed() = 0;

 protected:
  CardUnmaskPromptView();
  virtual ~CardUnmaskPromptView();

 private:
  DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptView);
};

}  // namespace autofill

#endif  // CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_H_