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

Side by Side Diff: ios/shared/chrome/browser/ui/dialogs/nsurl_protection_space_util.h

Issue 2921833002: [iOS Clean] Created OverlayService.
Patch Set: Cancel overlays on queue deallocation Created 3 years, 6 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
OLDNEW
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698