blob: ee3e757e61e7222a50e5c7745dab4a9f6dc2c0a3 [file] [log] [blame]
// 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 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_