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

Side by Side Diff: ios/web/web_state/web_state_impl.mm

Issue 2466143002: iOS: Mark HTTP pages with password fields with an omnibox icon. (Closed)
Patch Set: IsOriginSecure() Created 4 years 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 #include "ios/web/web_state/web_state_impl.h" 5 #include "ios/web/web_state/web_state_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 const web::Credential& credential) { 281 const web::Credential& credential) {
282 for (auto& observer : observers_) 282 for (auto& observer : observers_)
283 observer.SignInFailed(request_id, source_url, credential); 283 observer.SignInFailed(request_id, source_url, credential);
284 } 284 }
285 285
286 void WebStateImpl::OnSignInFailed(int request_id, const GURL& source_url) { 286 void WebStateImpl::OnSignInFailed(int request_id, const GURL& source_url) {
287 for (auto& observer : observers_) 287 for (auto& observer : observers_)
288 observer.SignInFailed(request_id, source_url); 288 observer.SignInFailed(request_id, source_url);
289 } 289 }
290 290
291 void WebStateImpl::OnPasswordInputShownOnHttp() {
Eugene But (OOO till 7-30) 2016/12/02 01:53:12 nit: Could you please try keeping the same order f
lgarron 2016/12/06 01:38:36 Whoops, fixed.
292 [web_controller_ didShowPasswordInputOnHTTP];
293 }
294
291 void WebStateImpl::OnDocumentSubmitted(const std::string& form_name, 295 void WebStateImpl::OnDocumentSubmitted(const std::string& form_name,
292 bool user_initiated) { 296 bool user_initiated) {
293 for (auto& observer : observers_) 297 for (auto& observer : observers_)
294 observer.DocumentSubmitted(form_name, user_initiated); 298 observer.DocumentSubmitted(form_name, user_initiated);
295 } 299 }
296 300
297 NavigationManagerImpl& WebStateImpl::GetNavigationManagerImpl() { 301 NavigationManagerImpl& WebStateImpl::GetNavigationManagerImpl() {
298 return navigation_manager_; 302 return navigation_manager_;
299 } 303 }
300 304
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 const LoadCommittedDetails& load_details) { 709 const LoadCommittedDetails& load_details) {
706 for (auto& observer : observers_) 710 for (auto& observer : observers_)
707 observer.NavigationItemCommitted(load_details); 711 observer.NavigationItemCommitted(load_details);
708 } 712 }
709 713
710 WebState* WebStateImpl::GetWebState() { 714 WebState* WebStateImpl::GetWebState() {
711 return this; 715 return this;
712 } 716 }
713 717
714 } // namespace web 718 } // namespace web
OLDNEW
« ios/web/web_state/ui/crw_web_controller.mm ('K') | « ios/web/web_state/web_state_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698