| 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_
|
|
|