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

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: 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 #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 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 } 389 }
390 390
391 WebInterstitial* WebStateImpl::GetWebInterstitial() const { 391 WebInterstitial* WebStateImpl::GetWebInterstitial() const {
392 return interstitial_; 392 return interstitial_;
393 } 393 }
394 394
395 void WebStateImpl::OnPasswordInputShownOnHttp() { 395 void WebStateImpl::OnPasswordInputShownOnHttp() {
396 [web_controller_ didShowPasswordInputOnHTTP]; 396 [web_controller_ didShowPasswordInputOnHTTP];
397 } 397 }
398 398
399 void WebStateImpl::OnCreditCardInputShownOnHttp() {
400 [web_controller_ didShowCreditCardInputOnHTTP];
401 }
402
399 net::HttpResponseHeaders* WebStateImpl::GetHttpResponseHeaders() const { 403 net::HttpResponseHeaders* WebStateImpl::GetHttpResponseHeaders() const {
400 return http_response_headers_.get(); 404 return http_response_headers_.get();
401 } 405 }
402 406
403 void WebStateImpl::OnHttpResponseHeadersReceived( 407 void WebStateImpl::OnHttpResponseHeadersReceived(
404 net::HttpResponseHeaders* response_headers, 408 net::HttpResponseHeaders* response_headers,
405 const GURL& resource_url) { 409 const GURL& resource_url) {
406 // Store the headers in a map until the page finishes loading, as we do not 410 // Store the headers in a map until the page finishes loading, as we do not
407 // know which URL corresponds to the main page yet. 411 // know which URL corresponds to the main page yet.
408 // Remove the hash (if any) as it is sometimes altered by in-page navigations. 412 // Remove the hash (if any) as it is sometimes altered by in-page navigations.
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 const LoadCommittedDetails& load_details) { 767 const LoadCommittedDetails& load_details) {
764 for (auto& observer : observers_) 768 for (auto& observer : observers_)
765 observer.NavigationItemCommitted(load_details); 769 observer.NavigationItemCommitted(load_details);
766 } 770 }
767 771
768 WebState* WebStateImpl::GetWebState() { 772 WebState* WebStateImpl::GetWebState() {
769 return this; 773 return this;
770 } 774 }
771 775
772 } // namespace web 776 } // namespace web
OLDNEW
« ios/web/public/web_state/web_state.h ('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