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

Side by Side Diff: url/mac/url_conversions.h

Issue 719783005: Upstream "nsurl_util.{h,mm}" from Chrome on iOS repository. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated files to reflect upstreaming. Diff against patch set 3. Created 6 years, 1 month 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
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
droger 2014/11/13 23:37:12 Nit: Not sure if this is important, but we should
erikchen 2014/11/13 23:41:25 Done.
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 URL_MAC_URL_CONVERSIONS_H_
6 #define URL_MAC_URL_CONVERSIONS_H_
7
8 #include "url/url_export.h"
9
10 class GURL;
11 @class NSURL;
12
13 // This function must only be called on OSX 10.7+ or iOS 4+.
14 // Method for creating a NSURL from a valid GURL. This method will return nil
15 // if the |url| is not valid.
16 // Note that NSURLs should *always* be created from GURLs, so that GURL
17 // sanitization rules are applied everywhere.
18 URL_EXPORT NSURL* NSURLWithGURL(const GURL& url);
19
20 // This function must only be called on OSX 10.7+ or iOS 4+.
21 // Method for creating a valid GURL from a NSURL. This method will return an
22 // empty GURL if the |url| is nil.
23 URL_EXPORT GURL GURLWithNSURL(NSURL* url);
24
25 #endif // URL_MAC_URL_CONVERSIONS_H_
OLDNEW
« no previous file with comments | « url/mac/README ('k') | url/mac/url_conversions.mm » ('j') | url/mac/url_conversions.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698