summaryrefslogtreecommitdiffstats
path: root/ios/net/url_scheme_util.h
blob: 3e33eb37af0a8bdb2c9bb5c88598da5964d15672 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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_