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

Side by Side Diff: ios/chrome/browser/tabs/tab.mm

Issue 2752013002: Removed webControllerDidUpdateSSLStatusForCurrentNavigationItem:. (Closed)
Patch Set: 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 | « no previous file | ios/web/public/test/fakes/crw_test_web_state_observer.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/chrome/browser/tabs/tab.h" 5 #import "ios/chrome/browser/tabs/tab.h"
6 6
7 #import <CoreLocation/CoreLocation.h> 7 #import <CoreLocation/CoreLocation.h>
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #include <utility> 10 #include <utility>
(...skipping 1895 matching lines...) Expand 10 before | Expand all | Expand 10 after
1906 1906
1907 - (void)webControllerDidSuppressDialog:(id)webController { 1907 - (void)webControllerDidSuppressDialog:(id)webController {
1908 DCHECK(isPrerenderTab_); 1908 DCHECK(isPrerenderTab_);
1909 [delegate_ discardPrerender]; 1909 [delegate_ discardPrerender];
1910 } 1910 }
1911 1911
1912 - (CGFloat)headerHeightForWebController:(CRWWebController*)webController { 1912 - (CGFloat)headerHeightForWebController:(CRWWebController*)webController {
1913 return [self.tabHeadersDelegate headerHeightForTab:self]; 1913 return [self.tabHeadersDelegate headerHeightForTab:self];
1914 } 1914 }
1915 1915
1916 - (void)webControllerDidUpdateSSLStatusForCurrentNavigationItem: 1916 - (void)webStateDidChangeVisibleSecurityState:(web::WebState*)webState {
1917 (CRWWebController*)webController {
1918 // Disable fullscreen if SSL cert is invalid. 1917 // Disable fullscreen if SSL cert is invalid.
1919 web::NavigationItem* item = [self navigationManager]->GetTransientItem(); 1918 web::NavigationItem* item = [self navigationManager]->GetTransientItem();
1920 web::SecurityStyle securityStyle = 1919 if (item) {
1921 item ? item->GetSSL().security_style : web::SECURITY_STYLE_UNKNOWN; 1920 web::SecurityStyle securityStyle = item->GetSSL().security_style;
1922 if (securityStyle == web::SECURITY_STYLE_AUTHENTICATION_BROKEN) { 1921 if (securityStyle == web::SECURITY_STYLE_AUTHENTICATION_BROKEN) {
1923 [fullScreenController_ disableFullScreen]; 1922 [fullScreenController_ disableFullScreen];
1923 }
1924 } 1924 }
1925 1925
1926 [parentTabModel_ notifyTabChanged:self]; 1926 [parentTabModel_ notifyTabChanged:self];
1927 [self updateFullscreenWithToolbarVisible:YES]; 1927 [self updateFullscreenWithToolbarVisible:YES];
1928 } 1928 }
1929 1929
1930 - (void)renderProcessGoneForWebState:(web::WebState*)webState { 1930 - (void)renderProcessGoneForWebState:(web::WebState*)webState {
1931 if (browserState_ && !browserState_->IsOffTheRecord()) { 1931 if (browserState_ && !browserState_->IsOffTheRecord()) {
1932 // Report the crash. 1932 // Report the crash.
1933 GetApplicationContext() 1933 GetApplicationContext()
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
2108 2108
2109 - (TabModel*)parentTabModel { 2109 - (TabModel*)parentTabModel {
2110 return parentTabModel_; 2110 return parentTabModel_;
2111 } 2111 }
2112 2112
2113 - (FormInputAccessoryViewController*)inputAccessoryViewController { 2113 - (FormInputAccessoryViewController*)inputAccessoryViewController {
2114 return inputAccessoryViewController_.get(); 2114 return inputAccessoryViewController_.get();
2115 } 2115 }
2116 2116
2117 @end 2117 @end
OLDNEW
« no previous file with comments | « no previous file | ios/web/public/test/fakes/crw_test_web_state_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698