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

Side by Side Diff: ios/web/public/web_state/web_state.h

Issue 2669123003: iOS: Mark HTTP pages with credit card fields with an omnibox icon. (Closed)
Patch Set: Add CRWWebController test. 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_H_ 5 #ifndef IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_H_
6 #define IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_H_ 6 #define IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 // Returns true if a WebInterstitial is currently displayed. 206 // Returns true if a WebInterstitial is currently displayed.
207 virtual bool IsShowingWebInterstitial() const = 0; 207 virtual bool IsShowingWebInterstitial() const = 0;
208 208
209 // Returns the currently visible WebInterstitial if one is shown. 209 // Returns the currently visible WebInterstitial if one is shown.
210 virtual WebInterstitial* GetWebInterstitial() const = 0; 210 virtual WebInterstitial* GetWebInterstitial() const = 0;
211 211
212 // Tells the WebState that the current page is an HTTP page 212 // Tells the WebState that the current page is an HTTP page
213 // containing a password field. 213 // containing a password field.
214 virtual void OnPasswordInputShownOnHttp() = 0; 214 virtual void OnPasswordInputShownOnHttp() = 0;
215 215
216 // Tells the WebState that the current page is an HTTP page
Eugene But (OOO till 7-30) 2017/02/03 19:24:16 Do you want to use comment from web contents which
lgarron 2017/02/04 00:28:35 I'd rather be a little more general here, in case
Eugene But (OOO till 7-30) 2017/02/04 01:29:17 It's ok, but how is this code different from conte
217 // containing a credit card field.
218 virtual void OnCreditCardInputShownOnHttp() = 0;
219
216 // Callback used to handle script commands. 220 // Callback used to handle script commands.
217 // The callback must return true if the command was handled, and false 221 // The callback must return true if the command was handled, and false
218 // otherwise. 222 // otherwise.
219 // In particular the callback must return false if the command is unexpected 223 // In particular the callback must return false if the command is unexpected
220 // or ill-formatted. 224 // or ill-formatted.
221 // The first parameter is the content of the command, the second parameter is 225 // The first parameter is the content of the command, the second parameter is
222 // the URL of the page, and the third parameter is a bool indicating if the 226 // the URL of the page, and the third parameter is a bool indicating if the
223 // user is currently interacting with the page. 227 // user is currently interacting with the page.
224 typedef base::Callback<bool(const base::DictionaryValue&, const GURL&, bool)> 228 typedef base::Callback<bool(const base::DictionaryValue&, const GURL&, bool)>
225 ScriptCommandCallback; 229 ScriptCommandCallback;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 285
282 // Returns a WeakPtr<WebState> to the current WebState. Must remain private 286 // Returns a WeakPtr<WebState> to the current WebState. Must remain private
283 // and only call must be in WebStateWeakPtrFactory. Please consult that class 287 // and only call must be in WebStateWeakPtrFactory. Please consult that class
284 // for more details. Remove as part of http://crbug.com/556736. 288 // for more details. Remove as part of http://crbug.com/556736.
285 virtual base::WeakPtr<WebState> AsWeakPtr() = 0; 289 virtual base::WeakPtr<WebState> AsWeakPtr() = 0;
286 }; 290 };
287 291
288 } // namespace web 292 } // namespace web
289 293
290 #endif // IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_H_ 294 #endif // IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698