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 2408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2419 return rendererInitiatedWithoutInteraction || noNavigationItems; | 2419 return rendererInitiatedWithoutInteraction || noNavigationItems; |
2420 } | 2420 } |
2421 | 2421 |
2422 - (BOOL)useDesktopUserAgent { | 2422 - (BOOL)useDesktopUserAgent { |
2423 web::NavigationItem* item = [self currentNavItem]; | 2423 web::NavigationItem* item = [self currentNavItem]; |
2424 return item && item->IsOverridingUserAgent(); | 2424 return item && item->IsOverridingUserAgent(); |
2425 } | 2425 } |
2426 | 2426 |
2427 - (web::MojoFacade*)mojoFacade { | 2427 - (web::MojoFacade*)mojoFacade { |
2428 if (!_mojoFacade) { | 2428 if (!_mojoFacade) { |
2429 shell::mojom::InterfaceProvider* interfaceProvider = | 2429 service_manager::mojom::InterfaceProvider* interfaceProvider = |
2430 _webStateImpl->GetMojoInterfaceRegistry(); | 2430 _webStateImpl->GetMojoInterfaceRegistry(); |
2431 _mojoFacade.reset(new web::MojoFacade(interfaceProvider, self)); | 2431 _mojoFacade.reset(new web::MojoFacade(interfaceProvider, self)); |
2432 } | 2432 } |
2433 return _mojoFacade.get(); | 2433 return _mojoFacade.get(); |
2434 } | 2434 } |
2435 | 2435 |
2436 - (CRWPassKitDownloader*)passKitDownloader { | 2436 - (CRWPassKitDownloader*)passKitDownloader { |
2437 if (_passKitDownloader) { | 2437 if (_passKitDownloader) { |
2438 return _passKitDownloader.get(); | 2438 return _passKitDownloader.get(); |
2439 } | 2439 } |
(...skipping 3209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5649 } | 5649 } |
5650 | 5650 |
5651 return web::WEB_VIEW_DOCUMENT_TYPE_GENERIC; | 5651 return web::WEB_VIEW_DOCUMENT_TYPE_GENERIC; |
5652 } | 5652 } |
5653 | 5653 |
5654 - (NSString*)refererFromNavigationAction:(WKNavigationAction*)action { | 5654 - (NSString*)refererFromNavigationAction:(WKNavigationAction*)action { |
5655 return [action.request valueForHTTPHeaderField:@"Referer"]; | 5655 return [action.request valueForHTTPHeaderField:@"Referer"]; |
5656 } | 5656 } |
5657 | 5657 |
5658 @end | 5658 @end |
OLD | NEW |