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

Side by Side Diff: chrome/browser/ui/autofill/card_unmask_prompt_controller_impl.h

Issue 910043002: Add checkbox to card unmasking prompt (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix dbg compile Created 5 years, 10 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_CONTROLLER_IMPL_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_CONTROLLER_IMPL_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_CONTROLLER_IMPL_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_CONTROLLER_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "chrome/browser/ui/autofill/card_unmask_prompt_controller.h" 10 #include "chrome/browser/ui/autofill/card_unmask_prompt_controller.h"
(...skipping 12 matching lines...) Expand all
23 // Functions called by ChromeAutofillClient. 23 // Functions called by ChromeAutofillClient.
24 void ShowPrompt(const CreditCard& card, 24 void ShowPrompt(const CreditCard& card,
25 base::WeakPtr<CardUnmaskDelegate> delegate); 25 base::WeakPtr<CardUnmaskDelegate> delegate);
26 // The CVC the user entered went through validation. 26 // The CVC the user entered went through validation.
27 void OnVerificationResult(bool success); 27 void OnVerificationResult(bool success);
28 28
29 // CardUnmaskPromptController implementation. 29 // CardUnmaskPromptController implementation.
30 void OnUnmaskDialogClosed() override; 30 void OnUnmaskDialogClosed() override;
31 void OnUnmaskResponse(const base::string16& cvc, 31 void OnUnmaskResponse(const base::string16& cvc,
32 const base::string16& exp_month, 32 const base::string16& exp_month,
33 const base::string16& exp_year) override; 33 const base::string16& exp_year,
34 bool should_store_pan) override;
34 35
35 content::WebContents* GetWebContents() override; 36 content::WebContents* GetWebContents() override;
36 base::string16 GetWindowTitle() const override; 37 base::string16 GetWindowTitle() const override;
37 base::string16 GetInstructionsMessage() const override; 38 base::string16 GetInstructionsMessage() const override;
38 int GetCvcImageRid() const override; 39 int GetCvcImageRid() const override;
39 bool ShouldRequestExpirationDate() const override; 40 bool ShouldRequestExpirationDate() const override;
41 bool GetStoreLocallyStartState() const override;
40 bool InputTextIsValid(const base::string16& input_text) const override; 42 bool InputTextIsValid(const base::string16& input_text) const override;
41 43
42 private: 44 private:
43 void LoadRiskFingerprint(); 45 void LoadRiskFingerprint();
44 void OnDidLoadRiskFingerprint(const std::string& risk_data); 46 void OnDidLoadRiskFingerprint(const std::string& risk_data);
45 47
46 content::WebContents* web_contents_; 48 content::WebContents* web_contents_;
47 CreditCard card_; 49 CreditCard card_;
48 base::WeakPtr<CardUnmaskDelegate> delegate_; 50 base::WeakPtr<CardUnmaskDelegate> delegate_;
49 CardUnmaskPromptView* card_unmask_view_; 51 CardUnmaskPromptView* card_unmask_view_;
50 52
51 CardUnmaskDelegate::UnmaskResponse pending_response_; 53 CardUnmaskDelegate::UnmaskResponse pending_response_;
52 54
53 base::WeakPtrFactory<CardUnmaskPromptControllerImpl> weak_pointer_factory_; 55 base::WeakPtrFactory<CardUnmaskPromptControllerImpl> weak_pointer_factory_;
54 56
55 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptControllerImpl); 57 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptControllerImpl);
56 }; 58 };
57 59
58 } // namespace autofill 60 } // namespace autofill
59 61
60 #endif // CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_CONTROLLER_IMPL_H_ 62 #endif // CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_CONTROLLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698