Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / ios / web / public / url_scheme_util.h
blob7300b2fc20ba23c79207bf0ec18475f331dd04ae
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.
5 #ifndef IOS_WEB_PUBLIC_URL_SCHEME_UTIL_H_
6 #define IOS_WEB_PUBLIC_URL_SCHEME_UTIL_H_
8 class GURL;
9 @class NSURL;
11 namespace web {
13 // Returns true if the URL has a www content scheme, i.e. http, https or data.
14 bool UrlHasWebScheme(const GURL& url);
16 // NOTE: Use these methods only in an NSURL-only context. Otherwise, use
17 // GURL's IsScheme, or the GURL version of UrlHasWebScheme.
18 // These functions will always return the same thing that the equivalent
19 // GURL call would return (assuming the URL is a valid GURL).
20 // Returns true if the URL has a www content scheme, i.e. http, https or data.
21 bool UrlHasWebScheme(NSURL* url);
23 } // namespace web
25 #endif // IOS_WEB_PUBLIC_URL_SCHEME_UTIL_H_