| 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 #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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 bool WebStateImpl::IsShowingWebInterstitial() const { | 348 bool WebStateImpl::IsShowingWebInterstitial() const { |
| 349 // Technically we could have |interstitial_| set but its view isn't | 349 // Technically we could have |interstitial_| set but its view isn't |
| 350 // being displayed, but there's no code path where that could occur. | 350 // being displayed, but there's no code path where that could occur. |
| 351 return interstitial_ != nullptr; | 351 return interstitial_ != nullptr; |
| 352 } | 352 } |
| 353 | 353 |
| 354 WebInterstitial* WebStateImpl::GetWebInterstitial() const { | 354 WebInterstitial* WebStateImpl::GetWebInterstitial() const { |
| 355 return interstitial_; | 355 return interstitial_; |
| 356 } | 356 } |
| 357 | 357 |
| 358 void WebStateImpl::OnPasswordInputShownOnHttp() { |
| 359 [web_controller_ didShowPasswordInputOnHTTP]; |
| 360 } |
| 361 |
| 358 net::HttpResponseHeaders* WebStateImpl::GetHttpResponseHeaders() const { | 362 net::HttpResponseHeaders* WebStateImpl::GetHttpResponseHeaders() const { |
| 359 return http_response_headers_.get(); | 363 return http_response_headers_.get(); |
| 360 } | 364 } |
| 361 | 365 |
| 362 void WebStateImpl::OnHttpResponseHeadersReceived( | 366 void WebStateImpl::OnHttpResponseHeadersReceived( |
| 363 net::HttpResponseHeaders* response_headers, | 367 net::HttpResponseHeaders* response_headers, |
| 364 const GURL& resource_url) { | 368 const GURL& resource_url) { |
| 365 // Store the headers in a map until the page finishes loading, as we do not | 369 // Store the headers in a map until the page finishes loading, as we do not |
| 366 // know which URL corresponds to the main page yet. | 370 // know which URL corresponds to the main page yet. |
| 367 // Remove the hash (if any) as it is sometimes altered by in-page navigations. | 371 // Remove the hash (if any) as it is sometimes altered by in-page navigations. |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |