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