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

Side by Side Diff: net/base/net_util.h

Issue 12893: Get rid of kPathSeparator on windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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 | Annotate | Revision Log
« no previous file with comments | « chrome/test/tab_switching/tab_switching_test.cc ('k') | net/base/net_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_BASE_NET_UTIL_H__ 5 #ifndef NET_BASE_NET_UTIL_H__
6 #define NET_BASE_NET_UTIL_H__ 6 #define NET_BASE_NET_UTIL_H__
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #include <string> 10 #include <string>
(...skipping 10 matching lines...) Expand all
21 class GURL; 21 class GURL;
22 22
23 namespace base { 23 namespace base {
24 class Time; 24 class Time;
25 } 25 }
26 26
27 namespace net { 27 namespace net {
28 28
29 // Given the full path to a file name, creates a file: URL. The returned URL 29 // Given the full path to a file name, creates a file: URL. The returned URL
30 // may not be valid if the input is malformed. 30 // may not be valid if the input is malformed.
31 GURL FilePathToFileURL(const FilePath& path);
32 // Deprecated temporary compatibility function.
31 GURL FilePathToFileURL(const std::wstring& file_path); 33 GURL FilePathToFileURL(const std::wstring& file_path);
32 34
33 // Converts a file: URL back to a filename that can be passed to the OS. The 35 // Converts a file: URL back to a filename that can be passed to the OS. The
34 // file URL must be well-formed (GURL::is_valid() must return true); we don't 36 // file URL must be well-formed (GURL::is_valid() must return true); we don't
35 // handle degenerate cases here. Returns true on success, false if it isn't a 37 // handle degenerate cases here. Returns true on success, false if it isn't a
36 // valid file URL. On failure, *file_path will be empty. 38 // valid file URL. On failure, *file_path will be empty.
37 bool FileURLToFilePath(const GURL& url, FilePath* file_path); 39 bool FileURLToFilePath(const GURL& url, FilePath* file_path);
38 // Deprecated temporary compatibility function. 40 // Deprecated temporary compatibility function.
39 bool FileURLToFilePath(const GURL& url, std::wstring* file_path); 41 bool FileURLToFilePath(const GURL& url, std::wstring* file_path);
40 42
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 // restricted. 137 // restricted.
136 bool IsPortAllowedByFtp(int port); 138 bool IsPortAllowedByFtp(int port);
137 139
138 // Set socket to non-blocking mode 140 // Set socket to non-blocking mode
139 int SetNonBlocking(int fd); 141 int SetNonBlocking(int fd);
140 142
141 } // namespace net 143 } // namespace net
142 144
143 #endif // NET_BASE_NET_UTIL_H__ 145 #endif // NET_BASE_NET_UTIL_H__
144 146
OLDNEW
« no previous file with comments | « chrome/test/tab_switching/tab_switching_test.cc ('k') | net/base/net_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698