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

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

Issue 2645783002: Replaced webControllerWebProcessDidCrash: with RenderProcessGone. (Closed)
Patch Set: Created 3 years, 11 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 4534 matching lines...) Expand 10 before | Expand all | Expand 10 after
4545 } 4545 }
4546 4546
4547 - (void)webViewWebProcessDidCrash { 4547 - (void)webViewWebProcessDidCrash {
4548 _webProcessIsDead = YES; 4548 _webProcessIsDead = YES;
4549 4549
4550 SEL cancelDialogsSelector = @selector(cancelDialogsForWebController:); 4550 SEL cancelDialogsSelector = @selector(cancelDialogsForWebController:);
4551 if ([self.UIDelegate respondsToSelector:cancelDialogsSelector]) 4551 if ([self.UIDelegate respondsToSelector:cancelDialogsSelector])
4552 [self.UIDelegate cancelDialogsForWebController:self]; 4552 [self.UIDelegate cancelDialogsForWebController:self];
4553 _webStateImpl->CancelDialogs(); 4553 _webStateImpl->CancelDialogs();
4554 4554
4555 SEL rendererCrashSelector = @selector(webControllerWebProcessDidCrash:); 4555 _webStateImpl->OnRenderProcessGone();
4556 if ([self.delegate respondsToSelector:rendererCrashSelector])
4557 [self.delegate webControllerWebProcessDidCrash:self];
4558 } 4556 }
4559 4557
4560 - (web::WKWebViewConfigurationProvider&)webViewConfigurationProvider { 4558 - (web::WKWebViewConfigurationProvider&)webViewConfigurationProvider {
4561 web::BrowserState* browserState = self.webStateImpl->GetBrowserState(); 4559 web::BrowserState* browserState = self.webStateImpl->GetBrowserState();
4562 return web::WKWebViewConfigurationProvider::FromBrowserState(browserState); 4560 return web::WKWebViewConfigurationProvider::FromBrowserState(browserState);
4563 } 4561 }
4564 4562
4565 - (web::WebViewDocumentType)webViewDocumentType { 4563 - (web::WebViewDocumentType)webViewDocumentType {
4566 // This happens during tests. 4564 // This happens during tests.
4567 if (!_webView) { 4565 if (!_webView) {
(...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after
5535 } 5533 }
5536 5534
5537 return web::WEB_VIEW_DOCUMENT_TYPE_GENERIC; 5535 return web::WEB_VIEW_DOCUMENT_TYPE_GENERIC;
5538 } 5536 }
5539 5537
5540 - (NSString*)refererFromNavigationAction:(WKNavigationAction*)action { 5538 - (NSString*)refererFromNavigationAction:(WKNavigationAction*)action {
5541 return [action.request valueForHTTPHeaderField:@"Referer"]; 5539 return [action.request valueForHTTPHeaderField:@"Referer"];
5542 } 5540 }
5543 5541
5544 @end 5542 @end
OLDNEW
« no previous file with comments | « ios/web/public/web_state/web_state_observer_bridge.h ('k') | ios/web/web_state/ui/crw_web_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698