Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(923)

Side by Side Diff: ios/web/web_state/ui/crw_web_controller.mm

Issue 2225483002: [ios] Removed CertVerifierBlockAdapter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated includes Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 4340 matching lines...) Expand 10 before | Expand all | Expand 10 after
5634 } 5633 }
5635 5634
5636 return web::WEB_VIEW_DOCUMENT_TYPE_GENERIC; 5635 return web::WEB_VIEW_DOCUMENT_TYPE_GENERIC;
5637 } 5636 }
5638 5637
5639 - (NSString*)refererFromNavigationAction:(WKNavigationAction*)action { 5638 - (NSString*)refererFromNavigationAction:(WKNavigationAction*)action {
5640 return [action.request valueForHTTPHeaderField:@"Referer"]; 5639 return [action.request valueForHTTPHeaderField:@"Referer"];
5641 } 5640 }
5642 5641
5643 @end 5642 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698