| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |