Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / net / base / mac / url_conversions.h
blob56f53a9d4a2a2e16728adda7dd257869b63b7f28
1 // Copyright 2012 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 NET_BASE_MAC_URL_CONVERSIONS_H_
6 #define NET_BASE_MAC_URL_CONVERSIONS_H_
8 #include "net/base/net_export.h"
10 class GURL;
11 @class NSURL;
13 namespace net {
15 // Method for creating a valid NSURL (compliant with RFC 1738/1808/2396) from a
16 // valid GURL. This method will return nil if the |url| is not valid.
17 // Note that NSURLs should *always* be created from GURLs, so that GURL
18 // sanitization rules are applied everywhere.
19 NET_EXPORT NSURL* NSURLWithGURL(const GURL& url);
21 // Method for creating a valid GURL from a NSURL. This method will return an
22 // empty GURL if the |url| is nil.
23 NET_EXPORT GURL GURLWithNSURL(NSURL* url);
25 } // namespace net
27 #endif // NET_BASE_MAC_URL_CONVERSIONS_H_