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

Side by Side Diff: components/autofill/core/browser/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_AUTOFILL_CLIENT_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // Inform the client that the field has been filled. 174 // Inform the client that the field has been filled.
175 virtual void DidFillOrPreviewField( 175 virtual void DidFillOrPreviewField(
176 const base::string16& autofilled_value, 176 const base::string16& autofilled_value,
177 const base::string16& profile_full_name) = 0; 177 const base::string16& profile_full_name) = 0;
178 178
179 // Informs the client that a user gesture has been observed. 179 // Informs the client that a user gesture has been observed.
180 virtual void OnFirstUserGestureObserved() = 0; 180 virtual void OnFirstUserGestureObserved() = 0;
181 181
182 // If the context is secure. 182 // If the context is secure.
183 virtual bool IsContextSecure(const GURL& form_origin) = 0; 183 virtual bool IsContextSecure(const GURL& form_origin) = 0;
184
185 // Whether it is appropriate to show a signin promo for this user.
186 virtual bool ShouldShowSigninPromo() = 0;
187
188 // Starts the signin flow. Should not be called if ShouldShowSigninPromo()
189 // returns false.
190 virtual void StartSigninFlow() = 0;
184 }; 191 };
185 192
186 } // namespace autofill 193 } // namespace autofill
187 194
188 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ 195 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/signin/inline_login_handler.cc ('k') | components/autofill/core/browser/autofill_external_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698