| 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_UI_DIALOGS_NSURL_PROTECTION_SPACE_UTIL_H_ | |
| 6 #define IOS_CHROME_BROWSER_UI_DIALOGS_NSURL_PROTECTION_SPACE_UTIL_H_ | |
| 7 | |
| 8 #import <Foundation/Foundation.h> | |
| 9 | |
| 10 class GURL; | |
| 11 | |
| 12 namespace ios_internal { | |
| 13 namespace nsurlprotectionspace_util { | |
| 14 | |
| 15 // Information describing dialog requester used as dialog subtitle. | |
| 16 NSString* MessageForHTTPAuth(NSURLProtectionSpace* protectionSpace); | |
| 17 | |
| 18 // Returns YES if dialog can be shown for set |protectionSpace|. | |
| 19 BOOL CanShow(NSURLProtectionSpace* protectionSpace); | |
| 20 | |
| 21 // String represending authentication requester (origin URL or hostname). | |
| 22 NSString* RequesterIdentity(NSURLProtectionSpace* protectionSpace); | |
| 23 | |
| 24 // URL origin of the dialog requester. | |
| 25 GURL RequesterOrigin(NSURLProtectionSpace* protectionSpace); | |
| 26 | |
| 27 } // namespace nsurlprotectionspace_util | |
| 28 } // namespace ios_internal | |
| 29 | |
| 30 #endif // IOS_CHROME_BROWSER_UI_DIALOGS_NSURL_PROTECTION_SPACE_UTIL_H_ | |
| OLD | NEW |