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

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

Issue 2724103005: Remove Tab -currentNavigationItem. (Closed)
Patch Set: Rebase. Created 3 years, 9 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/chrome/browser/tabs/tab_private.h ('k') | no next file » | 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 4777 matching lines...) Expand 10 before | Expand all | Expand 10 after
4788 querySSLStatusForTrust:(base::ScopedCFTypeRef<SecTrustRef>)trust 4788 querySSLStatusForTrust:(base::ScopedCFTypeRef<SecTrustRef>)trust
4789 host:(NSString*)host 4789 host:(NSString*)host
4790 completionHandler:(StatusQueryHandler)completionHandler { 4790 completionHandler:(StatusQueryHandler)completionHandler {
4791 [_certVerificationController querySSLStatusForTrust:std::move(trust) 4791 [_certVerificationController querySSLStatusForTrust:std::move(trust)
4792 host:host 4792 host:host
4793 completionHandler:completionHandler]; 4793 completionHandler:completionHandler];
4794 } 4794 }
4795 4795
4796 - (void)SSLStatusUpdater:(CRWSSLStatusUpdater*)SSLStatusUpdater 4796 - (void)SSLStatusUpdater:(CRWSSLStatusUpdater*)SSLStatusUpdater
4797 didChangeSSLStatusForNavigationItem:(web::NavigationItem*)navigationItem { 4797 didChangeSSLStatusForNavigationItem:(web::NavigationItem*)navigationItem {
4798 web::NavigationItem* currentNavigationItem = 4798 web::NavigationItem* lastCommittedNavigationItem =
4799 self.webState->GetNavigationManager()->GetLastCommittedItem(); 4799 self.webState->GetNavigationManager()->GetLastCommittedItem();
4800 if (navigationItem == currentNavigationItem) { 4800 if (navigationItem == lastCommittedNavigationItem) {
4801 [self didUpdateSSLStatusForCurrentNavigationItem]; 4801 [self didUpdateSSLStatusForCurrentNavigationItem];
4802 } 4802 }
4803 } 4803 }
4804 4804
4805 #pragma mark - 4805 #pragma mark -
4806 #pragma mark CRWWebContextMenuControllerDelegate methods 4806 #pragma mark CRWWebContextMenuControllerDelegate methods
4807 4807
4808 - (BOOL)webView:(WKWebView*)webView 4808 - (BOOL)webView:(WKWebView*)webView
4809 handleContextMenu:(const web::ContextMenuParams&)params { 4809 handleContextMenu:(const web::ContextMenuParams&)params {
4810 DCHECK(webView == _webView); 4810 DCHECK(webView == _webView);
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
5219 - (void)simulateLoadRequestWithURL:(const GURL&)URL { 5219 - (void)simulateLoadRequestWithURL:(const GURL&)URL {
5220 _lastRegisteredRequestURL = URL; 5220 _lastRegisteredRequestURL = URL;
5221 _loadPhase = web::LOAD_REQUESTED; 5221 _loadPhase = web::LOAD_REQUESTED;
5222 } 5222 }
5223 5223
5224 - (NSString*)referrerFromNavigationAction:(WKNavigationAction*)action { 5224 - (NSString*)referrerFromNavigationAction:(WKNavigationAction*)action {
5225 return [action.request valueForHTTPHeaderField:kReferrerHeaderName]; 5225 return [action.request valueForHTTPHeaderField:kReferrerHeaderName];
5226 } 5226 }
5227 5227
5228 @end 5228 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/tabs/tab_private.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698