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

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

Issue 904613006: Autofill: First step toward CVC unmask prompt dialog on OSX. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile error in browser test. 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 23 matching lines...) Expand all
34 bool should_store_pan) override; 34 bool should_store_pan) override;
35 35
36 content::WebContents* GetWebContents() override; 36 content::WebContents* GetWebContents() override;
37 base::string16 GetWindowTitle() const override; 37 base::string16 GetWindowTitle() const override;
38 base::string16 GetInstructionsMessage() const override; 38 base::string16 GetInstructionsMessage() const override;
39 int GetCvcImageRid() const override; 39 int GetCvcImageRid() const override;
40 bool ShouldRequestExpirationDate() const override; 40 bool ShouldRequestExpirationDate() const override;
41 bool GetStoreLocallyStartState() const override; 41 bool GetStoreLocallyStartState() const override;
42 bool InputTextIsValid(const base::string16& input_text) const override; 42 bool InputTextIsValid(const base::string16& input_text) const override;
43 43
44 protected:
45 // Exposed for testing.
46 CardUnmaskPromptView* view() { return card_unmask_view_; }
47
44 private: 48 private:
45 void LoadRiskFingerprint(); 49 void LoadRiskFingerprint();
46 void OnDidLoadRiskFingerprint(const std::string& risk_data); 50 void OnDidLoadRiskFingerprint(const std::string& risk_data);
47 51
48 content::WebContents* web_contents_; 52 content::WebContents* web_contents_;
49 CreditCard card_; 53 CreditCard card_;
50 base::WeakPtr<CardUnmaskDelegate> delegate_; 54 base::WeakPtr<CardUnmaskDelegate> delegate_;
51 CardUnmaskPromptView* card_unmask_view_; 55 CardUnmaskPromptView* card_unmask_view_;
52 56
53 CardUnmaskDelegate::UnmaskResponse pending_response_; 57 CardUnmaskDelegate::UnmaskResponse pending_response_;
54 58
55 base::WeakPtrFactory<CardUnmaskPromptControllerImpl> weak_pointer_factory_; 59 base::WeakPtrFactory<CardUnmaskPromptControllerImpl> weak_pointer_factory_;
56 60
57 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptControllerImpl); 61 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptControllerImpl);
58 }; 62 };
59 63
60 } // namespace autofill 64 } // namespace autofill
61 65
62 #endif // CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_CONTROLLER_IMPL_H_ 66 #endif // CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_CONTROLLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698