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

Unified Diff: ios/net/url_scheme_util.h

Issue 994823004: [iOS] Upstream //ios/net (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: ios/net/url_scheme_util.h
diff --git a/ios/net/url_scheme_util.h b/ios/net/url_scheme_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..3e33eb37af0a8bdb2c9bb5c88598da5964d15672
--- /dev/null
+++ b/ios/net/url_scheme_util.h
@@ -0,0 +1,23 @@
+// Copyright 2014 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_NET_URL_SCHEME_UTIL_H_
+#define IOS_NET_URL_SCHEME_UTIL_H_
+
+class GURL;
+@class NSString;
+@class NSURL;
+
+namespace net {
+
+// Returns true if the URL scheme is |scheme|. |scheme| is expected to be
+// lowercase.
+bool UrlSchemeIs(NSURL* url, NSString* scheme);
+
+// Returns true if the scheme has a data scheme.
+bool UrlHasDataScheme(NSURL* url);
+
+} // namespace net
+
+#endif // IOS_NET_URL_SCHEME_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698