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_
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
);
25 #endif // IOS_WEB_PUBLIC_URL_SCHEME_UTIL_H_