| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/ui/crw_web_controller.h" | 5 #import "ios/web/web_state/ui/crw_web_controller.h" |
| 6 | 6 |
| 7 #import <WebKit/WebKit.h> | 7 #import <WebKit/WebKit.h> |
| 8 | 8 |
| 9 #import <objc/runtime.h> | 9 #import <objc/runtime.h> |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| (...skipping 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1273 } | 1273 } |
| 1274 | 1274 |
| 1275 - (void)dismissModals { | 1275 - (void)dismissModals { |
| 1276 if ([self.nativeController respondsToSelector:@selector(dismissModals)]) | 1276 if ([self.nativeController respondsToSelector:@selector(dismissModals)]) |
| 1277 [self.nativeController dismissModals]; | 1277 [self.nativeController dismissModals]; |
| 1278 } | 1278 } |
| 1279 | 1279 |
| 1280 // Caller must reset the delegate before calling. | 1280 // Caller must reset the delegate before calling. |
| 1281 - (void)close { | 1281 - (void)close { |
| 1282 _SSLStatusUpdater.reset(); | 1282 _SSLStatusUpdater.reset(); |
| 1283 [_certVerificationController shutDown]; | |
| 1284 | 1283 |
| 1285 self.nativeProvider = nil; | 1284 self.nativeProvider = nil; |
| 1286 self.swipeRecognizerProvider = nil; | 1285 self.swipeRecognizerProvider = nil; |
| 1287 if ([self.nativeController respondsToSelector:@selector(close)]) | 1286 if ([self.nativeController respondsToSelector:@selector(close)]) |
| 1288 [self.nativeController close]; | 1287 [self.nativeController close]; |
| 1289 | 1288 |
| 1290 base::scoped_nsobject<NSSet> observers([_observers copy]); | 1289 base::scoped_nsobject<NSSet> observers([_observers copy]); |
| 1291 for (id it in observers.get()) { | 1290 for (id it in observers.get()) { |
| 1292 if ([it respondsToSelector:@selector(webControllerWillClose:)]) | 1291 if ([it respondsToSelector:@selector(webControllerWillClose:)]) |
| 1293 [it webControllerWillClose:self]; | 1292 [it webControllerWillClose:self]; |
| (...skipping 4371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5665 } | 5664 } |
| 5666 | 5665 |
| 5667 return web::WEB_VIEW_DOCUMENT_TYPE_GENERIC; | 5666 return web::WEB_VIEW_DOCUMENT_TYPE_GENERIC; |
| 5668 } | 5667 } |
| 5669 | 5668 |
| 5670 - (NSString*)refererFromNavigationAction:(WKNavigationAction*)action { | 5669 - (NSString*)refererFromNavigationAction:(WKNavigationAction*)action { |
| 5671 return [action.request valueForHTTPHeaderField:@"Referer"]; | 5670 return [action.request valueForHTTPHeaderField:@"Referer"]; |
| 5672 } | 5671 } |
| 5673 | 5672 |
| 5674 @end | 5673 @end |
| OLD | NEW |