Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(750)

Side by Side Diff: net/base/mac/url_conversions.h

Issue 773373002: Update from https://crrev.com/306706 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/base/mac/README ('k') | net/base/mac/url_conversions.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef NET_BASE_MAC_URL_CONVERSIONS_H_
6 #define NET_BASE_MAC_URL_CONVERSIONS_H_
7
8 #include "net/base/net_export.h"
9
10 class GURL;
11 @class NSURL;
12
13 namespace net {
14
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);
20
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);
24
25 } // namespace net
26
27 #endif // NET_BASE_MAC_URL_CONVERSIONS_H_
OLDNEW
« no previous file with comments | « net/base/mac/README ('k') | net/base/mac/url_conversions.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698