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

Side by Side Diff: ios/chrome/browser/ui/browser_view_controller.mm

Issue 2772723006: Do not suppress HTTP Authenticaiton in WebController. (Closed)
Patch Set: Updated comments Created 3 years, 8 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.h ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('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/ui/browser_view_controller.h" 5 #import "ios/chrome/browser/ui/browser_view_controller.h"
6 6
7 #import <AssetsLibrary/AssetsLibrary.h> 7 #import <AssetsLibrary/AssetsLibrary.h>
8 #import <MobileCoreServices/MobileCoreServices.h> 8 #import <MobileCoreServices/MobileCoreServices.h>
9 #import <PassKit/PassKit.h> 9 #import <PassKit/PassKit.h>
10 #import <Photos/Photos.h> 10 #import <Photos/Photos.h>
(...skipping 2620 matching lines...) Expand 10 before | Expand all | Expand 10 after
2631 - (web::JavaScriptDialogPresenter*)javaScriptDialogPresenterForWebState: 2631 - (web::JavaScriptDialogPresenter*)javaScriptDialogPresenterForWebState:
2632 (web::WebState*)webState { 2632 (web::WebState*)webState {
2633 return _javaScriptDialogPresenter.get(); 2633 return _javaScriptDialogPresenter.get();
2634 } 2634 }
2635 2635
2636 - (void)webState:(web::WebState*)webState 2636 - (void)webState:(web::WebState*)webState
2637 didRequestHTTPAuthForProtectionSpace:(NSURLProtectionSpace*)protectionSpace 2637 didRequestHTTPAuthForProtectionSpace:(NSURLProtectionSpace*)protectionSpace
2638 proposedCredential:(NSURLCredential*)proposedCredential 2638 proposedCredential:(NSURLCredential*)proposedCredential
2639 completionHandler:(void (^)(NSString* username, 2639 completionHandler:(void (^)(NSString* username,
2640 NSString* password))handler { 2640 NSString* password))handler {
2641 Tab* tab = LegacyTabHelper::GetTabForWebState(webState);
2642 if ([tab isPrerenderTab]) {
2643 [tab discardPrerender];
2644 if (handler) {
2645 handler(nil, nil);
2646 }
2647 return;
2648 }
2649
2641 [self.dialogPresenter runAuthDialogForProtectionSpace:protectionSpace 2650 [self.dialogPresenter runAuthDialogForProtectionSpace:protectionSpace
2642 proposedCredential:proposedCredential 2651 proposedCredential:proposedCredential
2643 webState:webState 2652 webState:webState
2644 completionHandler:handler]; 2653 completionHandler:handler];
2645 } 2654 }
2646 2655
2647 #pragma mark - FullScreenControllerDelegate methods 2656 #pragma mark - FullScreenControllerDelegate methods
2648 2657
2649 - (CGFloat)headerOffset { 2658 - (CGFloat)headerOffset {
2650 if (IsIPadIdiom()) 2659 if (IsIPadIdiom())
(...skipping 2466 matching lines...) Expand 10 before | Expand all | Expand 10 after
5117 5126
5118 - (UIView*)voiceSearchButton { 5127 - (UIView*)voiceSearchButton {
5119 return _voiceSearchButton; 5128 return _voiceSearchButton;
5120 } 5129 }
5121 5130
5122 - (id<LogoAnimationControllerOwner>)logoAnimationControllerOwner { 5131 - (id<LogoAnimationControllerOwner>)logoAnimationControllerOwner {
5123 return [self currentLogoAnimationControllerOwner]; 5132 return [self currentLogoAnimationControllerOwner];
5124 } 5133 }
5125 5134
5126 @end 5135 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/tabs/tab.h ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698