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

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

Issue 2971783002: Skeleton for showing "Show all saved passwords row" for Linux/CrOs/Windows platforms (Closed)
Patch Set: more comments adaressed Created 3 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 <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 const std::vector<autofill::FormStructure*>& forms) override; 70 const std::vector<autofill::FormStructure*>& forms) override;
71 void DidFillOrPreviewField(const base::string16& autofilled_value, 71 void DidFillOrPreviewField(const base::string16& autofilled_value,
72 const base::string16& profile_full_name) override; 72 const base::string16& profile_full_name) override;
73 // By default, TestAutofillClient will report that the context is 73 // By default, TestAutofillClient will report that the context is
74 // secure. This can be adjusted by calling set_form_origin() with an 74 // secure. This can be adjusted by calling set_form_origin() with an
75 // http:// URL. 75 // http:// URL.
76 bool IsContextSecure() override; 76 bool IsContextSecure() override;
77 bool ShouldShowSigninPromo() override; 77 bool ShouldShowSigninPromo() override;
78 void StartSigninFlow() override; 78 void StartSigninFlow() override;
79 void ShowHttpNotSecureExplanation() override; 79 void ShowHttpNotSecureExplanation() override;
80 void ShowPasswordsSettingsPage() override;
80 81
81 void SetPrefs(std::unique_ptr<PrefService> prefs) { 82 void SetPrefs(std::unique_ptr<PrefService> prefs) {
82 prefs_ = std::move(prefs); 83 prefs_ = std::move(prefs);
83 } 84 }
84 85
85 rappor::TestRapporServiceImpl* test_rappor_service() { 86 rappor::TestRapporServiceImpl* test_rappor_service() {
86 return rappor_service_.get(); 87 return rappor_service_.get();
87 } 88 }
88 89
89 void set_form_origin(const GURL& url) { form_origin_ = url; } 90 void set_form_origin(const GURL& url) { form_origin_ = url; }
90 91
91 private: 92 private:
92 // NULL by default. 93 // NULL by default.
93 std::unique_ptr<PrefService> prefs_; 94 std::unique_ptr<PrefService> prefs_;
94 std::unique_ptr<FakeOAuth2TokenService> token_service_; 95 std::unique_ptr<FakeOAuth2TokenService> token_service_;
95 std::unique_ptr<FakeIdentityProvider> identity_provider_; 96 std::unique_ptr<FakeIdentityProvider> identity_provider_;
96 std::unique_ptr<rappor::TestRapporServiceImpl> rappor_service_; 97 std::unique_ptr<rappor::TestRapporServiceImpl> rappor_service_;
97 #if !defined(OS_ANDROID) 98 #if !defined(OS_ANDROID)
98 std::unique_ptr<SaveCardBubbleController> save_card_bubble_controller_; 99 std::unique_ptr<SaveCardBubbleController> save_card_bubble_controller_;
99 #endif 100 #endif
100 GURL form_origin_; 101 GURL form_origin_;
101 102
102 DISALLOW_COPY_AND_ASSIGN(TestAutofillClient); 103 DISALLOW_COPY_AND_ASSIGN(TestAutofillClient);
103 }; 104 };
104 105
105 } // namespace autofill 106 } // namespace autofill
106 107
107 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ 108 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698