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

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

Issue 2669123003: iOS: Mark HTTP pages with credit card fields with an omnibox icon. (Closed)
Patch Set: Update comments. 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
« 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 #import "ios/web/web_state/web_state_impl.h" 5 #import "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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 } 364 }
365 365
366 WebInterstitial* WebStateImpl::GetWebInterstitial() const { 366 WebInterstitial* WebStateImpl::GetWebInterstitial() const {
367 return interstitial_; 367 return interstitial_;
368 } 368 }
369 369
370 void WebStateImpl::OnPasswordInputShownOnHttp() { 370 void WebStateImpl::OnPasswordInputShownOnHttp() {
371 [web_controller_ didShowPasswordInputOnHTTP]; 371 [web_controller_ didShowPasswordInputOnHTTP];
372 } 372 }
373 373
374 void WebStateImpl::OnCreditCardInputShownOnHttp() {
375 [web_controller_ didShowCreditCardInputOnHTTP];
376 }
377
374 net::HttpResponseHeaders* WebStateImpl::GetHttpResponseHeaders() const { 378 net::HttpResponseHeaders* WebStateImpl::GetHttpResponseHeaders() const {
375 return http_response_headers_.get(); 379 return http_response_headers_.get();
376 } 380 }
377 381
378 void WebStateImpl::OnHttpResponseHeadersReceived( 382 void WebStateImpl::OnHttpResponseHeadersReceived(
379 net::HttpResponseHeaders* response_headers, 383 net::HttpResponseHeaders* response_headers,
380 const GURL& resource_url) { 384 const GURL& resource_url) {
381 // Store the headers in a map until the page finishes loading, as we do not 385 // Store the headers in a map until the page finishes loading, as we do not
382 // know which URL corresponds to the main page yet. 386 // know which URL corresponds to the main page yet.
383 // Remove the hash (if any) as it is sometimes altered by in-page navigations. 387 // Remove the hash (if any) as it is sometimes altered by in-page navigations.
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 const LoadCommittedDetails& load_details) { 729 const LoadCommittedDetails& load_details) {
726 for (auto& observer : observers_) 730 for (auto& observer : observers_)
727 observer.NavigationItemCommitted(load_details); 731 observer.NavigationItemCommitted(load_details);
728 } 732 }
729 733
730 WebState* WebStateImpl::GetWebState() { 734 WebState* WebStateImpl::GetWebState() {
731 return this; 735 return this;
732 } 736 }
733 737
734 } // namespace web 738 } // 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