| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 #import "ios/web/web_state/ui/wk_web_view_configuration_provider.h" | 92 #import "ios/web/web_state/ui/wk_web_view_configuration_provider.h" |
| 93 #import "ios/web/web_state/web_controller_observer_bridge.h" | 93 #import "ios/web/web_state/web_controller_observer_bridge.h" |
| 94 #import "ios/web/web_state/web_state_impl.h" | 94 #import "ios/web/web_state/web_state_impl.h" |
| 95 #import "ios/web/web_state/web_view_internal_creation_util.h" | 95 #import "ios/web/web_state/web_view_internal_creation_util.h" |
| 96 #import "ios/web/web_state/wk_web_view_security_util.h" | 96 #import "ios/web/web_state/wk_web_view_security_util.h" |
| 97 #import "ios/web/webui/crw_web_ui_manager.h" | 97 #import "ios/web/webui/crw_web_ui_manager.h" |
| 98 #import "ios/web/webui/mojo_facade.h" | 98 #import "ios/web/webui/mojo_facade.h" |
| 99 #import "net/base/mac/url_conversions.h" | 99 #import "net/base/mac/url_conversions.h" |
| 100 #include "net/base/net_errors.h" | 100 #include "net/base/net_errors.h" |
| 101 #include "net/ssl/ssl_info.h" | 101 #include "net/ssl/ssl_info.h" |
| 102 #include "services/service_manager/public/cpp/interface_registry.h" | |
| 103 #include "ui/base/page_transition_types.h" | 102 #include "ui/base/page_transition_types.h" |
| 104 #include "url/gurl.h" | 103 #include "url/gurl.h" |
| 105 #include "url/url_constants.h" | 104 #include "url/url_constants.h" |
| 106 | 105 |
| 107 using base::UserMetricsAction; | 106 using base::UserMetricsAction; |
| 108 using web::NavigationManager; | 107 using web::NavigationManager; |
| 109 using web::NavigationManagerImpl; | 108 using web::NavigationManagerImpl; |
| 110 using web::WebState; | 109 using web::WebState; |
| 111 using web::WebStateImpl; | 110 using web::WebStateImpl; |
| 112 | 111 |
| (...skipping 2088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2201 } | 2200 } |
| 2202 | 2201 |
| 2203 - (web::UserAgentType)userAgentType { | 2202 - (web::UserAgentType)userAgentType { |
| 2204 web::NavigationItem* item = self.currentNavItem; | 2203 web::NavigationItem* item = self.currentNavItem; |
| 2205 return item ? item->GetUserAgentType() : web::UserAgentType::MOBILE; | 2204 return item ? item->GetUserAgentType() : web::UserAgentType::MOBILE; |
| 2206 } | 2205 } |
| 2207 | 2206 |
| 2208 - (web::MojoFacade*)mojoFacade { | 2207 - (web::MojoFacade*)mojoFacade { |
| 2209 if (!_mojoFacade) { | 2208 if (!_mojoFacade) { |
| 2210 service_manager::mojom::InterfaceProvider* interfaceProvider = | 2209 service_manager::mojom::InterfaceProvider* interfaceProvider = |
| 2211 _webStateImpl->GetMojoInterfaceRegistry(); | 2210 _webStateImpl->GetWebStateInterfaceProvider(); |
| 2212 _mojoFacade.reset(new web::MojoFacade(interfaceProvider, self)); | 2211 _mojoFacade.reset(new web::MojoFacade(interfaceProvider, self)); |
| 2213 } | 2212 } |
| 2214 return _mojoFacade.get(); | 2213 return _mojoFacade.get(); |
| 2215 } | 2214 } |
| 2216 | 2215 |
| 2217 - (CRWPassKitDownloader*)passKitDownloader { | 2216 - (CRWPassKitDownloader*)passKitDownloader { |
| 2218 if (_passKitDownloader) { | 2217 if (_passKitDownloader) { |
| 2219 return _passKitDownloader.get(); | 2218 return _passKitDownloader.get(); |
| 2220 } | 2219 } |
| 2221 base::WeakNSObject<CRWWebController> weakSelf(self); | 2220 base::WeakNSObject<CRWWebController> weakSelf(self); |
| (...skipping 2841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5063 - (NSUInteger)observerCount { | 5062 - (NSUInteger)observerCount { |
| 5064 DCHECK_EQ(_observerBridges.size(), [_observers count]); | 5063 DCHECK_EQ(_observerBridges.size(), [_observers count]); |
| 5065 return [_observers count]; | 5064 return [_observers count]; |
| 5066 } | 5065 } |
| 5067 | 5066 |
| 5068 - (NSString*)referrerFromNavigationAction:(WKNavigationAction*)action { | 5067 - (NSString*)referrerFromNavigationAction:(WKNavigationAction*)action { |
| 5069 return [action.request valueForHTTPHeaderField:kReferrerHeaderName]; | 5068 return [action.request valueForHTTPHeaderField:kReferrerHeaderName]; |
| 5070 } | 5069 } |
| 5071 | 5070 |
| 5072 @end | 5071 @end |
| OLD | NEW |