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

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

Issue 2420253002: Rename shell namespace to service_manager (Closed)
Patch Set: . Created 4 years, 2 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
« no previous file with comments | « ios/web/public/web_state/web_state.h ('k') | ios/web/web_state/web_state_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2408 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « ios/web/public/web_state/web_state.h ('k') | ios/web/web_state/web_state_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698