OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_TABS_TAB_DIALOG_DELEGATE_H_ |
| 6 #define IOS_CHROME_BROWSER_TABS_TAB_DIALOG_DELEGATE_H_ |
| 7 |
| 8 @class Tab; |
| 9 |
| 10 // A protocol delegating the display of dialogs for a Tab. |
| 11 @protocol TabDialogDelegate |
| 12 |
| 13 // Displays an HTTP authentication dialog. |completionHandler| should be called |
| 14 // with non nil |username| and |password| in order to proceed with |
| 15 // authentication. |
| 16 - (void)tab:(Tab*)tab |
| 17 runAuthDialogForProtectionSpace:(NSURLProtectionSpace*)protectionSpace |
| 18 proposedCredential:(NSURLCredential*)credential |
| 19 completionHandler: |
| 20 (void (^)(NSString* user, NSString* password))handler; |
| 21 |
| 22 // Called by Tabs to cancel a previously-requested dialog. |
| 23 - (void)cancelDialogForTab:(Tab*)tab; |
| 24 |
| 25 @end |
| 26 |
| 27 #endif // IOS_CHROME_BROWSER_TABS_TAB_DIALOG_DELEGATE_H_ |
OLD | NEW |