OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_H_ |
| 7 |
| 8 #include "base/callback.h" |
| 9 #include "base/strings/string16.h" |
| 10 |
| 11 namespace content { |
| 12 class WebContents; |
| 13 } |
| 14 |
| 15 namespace autofill { |
| 16 |
| 17 // The cross-platform UI interface which prompts the user to unlock a masked |
| 18 // Wallet instrument (credit card). This object is responsible for its own |
| 19 // lifetime. |
| 20 class CardUnmaskPromptView { |
| 21 public: |
| 22 typedef base::Callback<void(const base::string16& /* CVC */)> UnmaskCallback; |
| 23 |
| 24 // |finished| is guaranteed to be called. |
| 25 static CardUnmaskPromptView* CreateAndShow(content::WebContents* web_contents, |
| 26 const UnmaskCallback& finished); |
| 27 |
| 28 protected: |
| 29 CardUnmaskPromptView(); |
| 30 virtual ~CardUnmaskPromptView(); |
| 31 |
| 32 private: |
| 33 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptView); |
| 34 }; |
| 35 |
| 36 } // namespace autofill |
| 37 |
| 38 #endif // CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_H_ |
OLD | NEW |