url_scheme_util.h 567 B

12345678910111213141516171819202122
  1. // Copyright 2014 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef IOS_NET_URL_SCHEME_UTIL_H_
  5. #define IOS_NET_URL_SCHEME_UTIL_H_
  6. @class NSString;
  7. @class NSURL;
  8. namespace net {
  9. // Returns true if the URL scheme is |scheme|. |scheme| is expected to be
  10. // lowercase.
  11. bool UrlSchemeIs(NSURL* url, NSString* scheme);
  12. // Returns true if the scheme has a data scheme.
  13. bool UrlHasDataScheme(NSURL* url);
  14. } // namespace net
  15. #endif // IOS_NET_URL_SCHEME_UTIL_H_