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

Side by Side Diff: components/autofill/core/browser/test_autofill_client.h

Issue 2124343002: [Autofill] Implement Credit Card Signin Promo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 4 years, 5 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 COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 const std::vector<base::string16>& labels) override; 57 const std::vector<base::string16>& labels) override;
58 void HideAutofillPopup() override; 58 void HideAutofillPopup() override;
59 bool IsAutocompleteEnabled() override; 59 bool IsAutocompleteEnabled() override;
60 void PropagateAutofillPredictions( 60 void PropagateAutofillPredictions(
61 content::RenderFrameHost* rfh, 61 content::RenderFrameHost* rfh,
62 const std::vector<autofill::FormStructure*>& forms) override; 62 const std::vector<autofill::FormStructure*>& forms) override;
63 void DidFillOrPreviewField(const base::string16& autofilled_value, 63 void DidFillOrPreviewField(const base::string16& autofilled_value,
64 const base::string16& profile_full_name) override; 64 const base::string16& profile_full_name) override;
65 void OnFirstUserGestureObserved() override; 65 void OnFirstUserGestureObserved() override;
66 bool IsContextSecure(const GURL& form_origin) override; 66 bool IsContextSecure(const GURL& form_origin) override;
67 bool ShouldShowSigninPromo() override;
68 void StartSigninFlow() override;
67 69
68 void set_is_context_secure(bool is_context_secure) { 70 void set_is_context_secure(bool is_context_secure) {
69 is_context_secure_ = is_context_secure; 71 is_context_secure_ = is_context_secure;
70 }; 72 };
71 73
72 void SetPrefs(std::unique_ptr<PrefService> prefs) { 74 void SetPrefs(std::unique_ptr<PrefService> prefs) {
73 prefs_ = std::move(prefs); 75 prefs_ = std::move(prefs);
74 } 76 }
75 77
76 rappor::TestRapporService* test_rappor_service() { 78 rappor::TestRapporService* test_rappor_service() {
77 return rappor_service_.get(); 79 return rappor_service_.get();
78 } 80 }
79 81
80 private: 82 private:
81 // NULL by default. 83 // NULL by default.
82 std::unique_ptr<PrefService> prefs_; 84 std::unique_ptr<PrefService> prefs_;
83 std::unique_ptr<FakeOAuth2TokenService> token_service_; 85 std::unique_ptr<FakeOAuth2TokenService> token_service_;
84 std::unique_ptr<FakeIdentityProvider> identity_provider_; 86 std::unique_ptr<FakeIdentityProvider> identity_provider_;
85 std::unique_ptr<rappor::TestRapporService> rappor_service_; 87 std::unique_ptr<rappor::TestRapporService> rappor_service_;
86 88
87 bool is_context_secure_; 89 bool is_context_secure_;
88 90
89 DISALLOW_COPY_AND_ASSIGN(TestAutofillClient); 91 DISALLOW_COPY_AND_ASSIGN(TestAutofillClient);
90 }; 92 };
91 93
92 } // namespace autofill 94 } // namespace autofill
93 95
94 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ 96 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/popup_item_ids.h ('k') | components/autofill/core/browser/test_autofill_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698