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

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

Issue 2672623005: Record Autofill form events specially for nonsecure pages (Closed)
Patch Set: fix test added in rebase Created 3 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 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 <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
13 #include "base/i18n/rtl.h" 13 #include "base/i18n/rtl.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/strings/string16.h" 15 #include "base/strings/string16.h"
16 #include "base/values.h" 16 #include "base/values.h"
17 #include "ui/base/window_open_disposition.h" 17 #include "ui/base/window_open_disposition.h"
18 #include "url/gurl.h" 18 #include "url/gurl.h"
19 19
20 class GURL;
21 class IdentityProvider; 20 class IdentityProvider;
22 class PrefService; 21 class PrefService;
23 22
24 namespace content { 23 namespace content {
25 class RenderFrameHost; 24 class RenderFrameHost;
26 } 25 }
27 26
28 namespace gfx { 27 namespace gfx {
29 class RectF; 28 class RectF;
30 } 29 }
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 173
175 // Inform the client that the field has been filled. 174 // Inform the client that the field has been filled.
176 virtual void DidFillOrPreviewField( 175 virtual void DidFillOrPreviewField(
177 const base::string16& autofilled_value, 176 const base::string16& autofilled_value,
178 const base::string16& profile_full_name) = 0; 177 const base::string16& profile_full_name) = 0;
179 178
180 // Informs the client that a user gesture has been observed. 179 // Informs the client that a user gesture has been observed.
181 virtual void OnFirstUserGestureObserved() = 0; 180 virtual void OnFirstUserGestureObserved() = 0;
182 181
183 // If the context is secure. 182 // If the context is secure.
184 virtual bool IsContextSecure(const GURL& form_origin) = 0; 183 virtual bool IsContextSecure() = 0;
185 184
186 // Whether it is appropriate to show a signin promo for this user. 185 // Whether it is appropriate to show a signin promo for this user.
187 virtual bool ShouldShowSigninPromo() = 0; 186 virtual bool ShouldShowSigninPromo() = 0;
188 187
189 // Starts the signin flow. Should not be called if ShouldShowSigninPromo() 188 // Starts the signin flow. Should not be called if ShouldShowSigninPromo()
190 // returns false. 189 // returns false.
191 virtual void StartSigninFlow() = 0; 190 virtual void StartSigninFlow() = 0;
192 191
193 // Shows the explanation of http not secure warning message. 192 // Shows the explanation of http not secure warning message.
194 virtual void ShowHttpNotSecureExplanation() = 0; 193 virtual void ShowHttpNotSecureExplanation() = 0;
195 }; 194 };
196 195
197 } // namespace autofill 196 } // namespace autofill
198 197
199 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ 198 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_assistant.cc ('k') | components/autofill/core/browser/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698