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

Unified Diff: ios/chrome/browser/ui/dialogs/nsurl_protection_space_util.h

Issue 2588713002: Upstream Chrome on iOS source code [4/11]. (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/dialogs/nsurl_protection_space_util.h
diff --git a/ios/chrome/browser/ui/dialogs/nsurl_protection_space_util.h b/ios/chrome/browser/ui/dialogs/nsurl_protection_space_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..77bba8dd80ba7d4d236735f9a2ba0334affe41cd
--- /dev/null
+++ b/ios/chrome/browser/ui/dialogs/nsurl_protection_space_util.h
@@ -0,0 +1,30 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_CHROME_BROWSER_UI_DIALOGS_NSURL_PROTECTION_SPACE_UTIL_H_
+#define IOS_CHROME_BROWSER_UI_DIALOGS_NSURL_PROTECTION_SPACE_UTIL_H_
+
+#import <Foundation/Foundation.h>
+
+class GURL;
+
+namespace ios_internal {
+namespace nsurlprotectionspace_util {
+
+// Information describing dialog requester used as dialog subtitle.
+NSString* MessageForHTTPAuth(NSURLProtectionSpace* protectionSpace);
+
+// Returns YES if dialog can be shown for set |protectionSpace|.
+BOOL CanShow(NSURLProtectionSpace* protectionSpace);
+
+// String represending authentication requester (origin URL or hostname).
+NSString* RequesterIdentity(NSURLProtectionSpace* protectionSpace);
+
+// URL origin of the dialog requester.
+GURL RequesterOrigin(NSURLProtectionSpace* protectionSpace);
+
+} // namespace nsurlprotectionspace_util
+} // namespace ios_internal
+
+#endif // IOS_CHROME_BROWSER_UI_DIALOGS_NSURL_PROTECTION_SPACE_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698