| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/interstitials/web_interstitial_impl.h" | 5 #import "ios/web/interstitials/web_interstitial_impl.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "ios/web/interstitials/web_interstitial_facade_delegate.h" | 8 #include "ios/web/interstitials/web_interstitial_facade_delegate.h" |
| 9 #include "ios/web/navigation/crw_session_controller.h" | 9 #include "ios/web/navigation/crw_session_controller.h" |
| 10 #include "ios/web/navigation/navigation_manager_impl.h" | 10 #include "ios/web/navigation/navigation_manager_impl.h" |
| 11 #include "ios/web/public/interstitials/web_interstitial_delegate.h" | 11 #include "ios/web/public/interstitials/web_interstitial_delegate.h" |
| 12 #include "ios/web/public/navigation_manager.h" | 12 #import "ios/web/public/navigation_manager.h" |
| 13 #include "ios/web/web_state/web_state_impl.h" | 13 #include "ios/web/web_state/web_state_impl.h" |
| 14 | 14 |
| 15 namespace web { | 15 namespace web { |
| 16 | 16 |
| 17 // static | 17 // static |
| 18 WebInterstitial* WebInterstitial::GetWebInterstitial(web::WebState* web_state) { | 18 WebInterstitial* WebInterstitial::GetWebInterstitial(web::WebState* web_state) { |
| 19 return web_state->GetWebInterstitial(); | 19 return web_state->GetWebInterstitial(); |
| 20 } | 20 } |
| 21 | 21 |
| 22 WebInterstitialImpl::WebInterstitialImpl(WebStateImpl* web_state, | 22 WebInterstitialImpl::WebInterstitialImpl(WebStateImpl* web_state, |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 96 |
| 97 void WebInterstitialImpl::WebStateDestroyed() { | 97 void WebInterstitialImpl::WebStateDestroyed() { |
| 98 DontProceed(); | 98 DontProceed(); |
| 99 } | 99 } |
| 100 | 100 |
| 101 WebStateImpl* WebInterstitialImpl::GetWebStateImpl() const { | 101 WebStateImpl* WebInterstitialImpl::GetWebStateImpl() const { |
| 102 return static_cast<web::WebStateImpl*>(web_state()); | 102 return static_cast<web::WebStateImpl*>(web_state()); |
| 103 } | 103 } |
| 104 | 104 |
| 105 } // namespace web | 105 } // namespace web |
| OLD | NEW |