| 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 #import "ios/web/navigation/crw_session_controller.h" |
| 10 #include "ios/web/navigation/navigation_manager_impl.h" | 10 #import "ios/web/navigation/navigation_manager_impl.h" |
| 11 #include "ios/web/public/interstitials/web_interstitial_delegate.h" | 11 #import "ios/web/public/interstitials/web_interstitial_delegate.h" |
| 12 #import "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 #import "ios/web/web_state/web_state_impl.h" |
| 14 | 14 |
| 15 #if !defined(__has_feature) || !__has_feature(objc_arc) | 15 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 16 #error "This file requires ARC support." | 16 #error "This file requires ARC support." |
| 17 #endif | 17 #endif |
| 18 | 18 |
| 19 namespace web { | 19 namespace web { |
| 20 | 20 |
| 21 // static | 21 // static |
| 22 WebInterstitial* WebInterstitial::GetWebInterstitial(web::WebState* web_state) { | 22 WebInterstitial* WebInterstitial::GetWebInterstitial(web::WebState* web_state) { |
| 23 return web_state->GetWebInterstitial(); | 23 return web_state->GetWebInterstitial(); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 void WebInterstitialImpl::WebStateDestroyed() { | 109 void WebInterstitialImpl::WebStateDestroyed() { |
| 110 DontProceed(); | 110 DontProceed(); |
| 111 } | 111 } |
| 112 | 112 |
| 113 WebStateImpl* WebInterstitialImpl::GetWebStateImpl() const { | 113 WebStateImpl* WebInterstitialImpl::GetWebStateImpl() const { |
| 114 return static_cast<web::WebStateImpl*>(web_state()); | 114 return static_cast<web::WebStateImpl*>(web_state()); |
| 115 } | 115 } |
| 116 | 116 |
| 117 } // namespace web | 117 } // namespace web |
| OLD | NEW |