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

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: iOS HTTP Bad. 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
« no previous file with comments | « ios/web/web_state/web_state_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 bool WebStateImpl::IsShowingWebInterstitial() const { 354 bool WebStateImpl::IsShowingWebInterstitial() const {
355 // Technically we could have |interstitial_| set but its view isn't 355 // Technically we could have |interstitial_| set but its view isn't
356 // being displayed, but there's no code path where that could occur. 356 // being displayed, but there's no code path where that could occur.
357 return interstitial_ != nullptr; 357 return interstitial_ != nullptr;
358 } 358 }
359 359
360 WebInterstitial* WebStateImpl::GetWebInterstitial() const { 360 WebInterstitial* WebStateImpl::GetWebInterstitial() const {
361 return interstitial_; 361 return interstitial_;
362 } 362 }
363 363
364 void WebStateImpl::OnPasswordInputShownOnHttp() {
365 [web_controller_ didShowPasswordInputOnHTTP];
366 }
367
364 net::HttpResponseHeaders* WebStateImpl::GetHttpResponseHeaders() const { 368 net::HttpResponseHeaders* WebStateImpl::GetHttpResponseHeaders() const {
365 return http_response_headers_.get(); 369 return http_response_headers_.get();
366 } 370 }
367 371
368 void WebStateImpl::OnHttpResponseHeadersReceived( 372 void WebStateImpl::OnHttpResponseHeadersReceived(
369 net::HttpResponseHeaders* response_headers, 373 net::HttpResponseHeaders* response_headers,
370 const GURL& resource_url) { 374 const GURL& resource_url) {
371 // Store the headers in a map until the page finishes loading, as we do not 375 // Store the headers in a map until the page finishes loading, as we do not
372 // know which URL corresponds to the main page yet. 376 // know which URL corresponds to the main page yet.
373 // Remove the hash (if any) as it is sometimes altered by in-page navigations. 377 // Remove the hash (if any) as it is sometimes altered by in-page navigations.
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 const LoadCommittedDetails& load_details) { 734 const LoadCommittedDetails& load_details) {
731 for (auto& observer : observers_) 735 for (auto& observer : observers_)
732 observer.NavigationItemCommitted(load_details); 736 observer.NavigationItemCommitted(load_details);
733 } 737 }
734 738
735 WebState* WebStateImpl::GetWebState() { 739 WebState* WebStateImpl::GetWebState() {
736 return this; 740 return this;
737 } 741 }
738 742
739 } // namespace web 743 } // namespace web
OLDNEW
« no previous file with comments | « 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