diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-19 23:04:29 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-19 23:04:29 +0000 |
commit | 721c3f17a7fb36edaa17f607a11db9c82ba720ca (patch) | |
tree | c78e993a5474acdb2751c222db8787d7aa482301 /net/base/net_util.h | |
parent | f785ad125747f9125c952c7e74f2154098ee15a9 (diff) | |
download | chromium_src-721c3f17a7fb36edaa17f607a11db9c82ba720ca.zip chromium_src-721c3f17a7fb36edaa17f607a11db9c82ba720ca.tar.gz chromium_src-721c3f17a7fb36edaa17f607a11db9c82ba720ca.tar.bz2 |
Port directory lister so test shell can view file directories.
Review URL: http://codereview.chromium.org/11437
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5725 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/net_util.h')
-rw-r--r-- | net/base/net_util.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/net/base/net_util.h b/net/base/net_util.h index 7adfc57..f8f49b8 100644 --- a/net/base/net_util.h +++ b/net/base/net_util.h @@ -19,6 +19,10 @@ class GURL; +namespace base { +class Time; +} + namespace net { // Given the full path to a file name, creates a file: URL. The returned URL @@ -95,15 +99,12 @@ void IDNToUnicode(const char* host, std::string CanonicalizeHost(const std::string& host, bool* is_ip_address); std::string CanonicalizeHost(const std::wstring& host, bool* is_ip_address); -#ifdef OS_WIN -// TODO: Port GetDirectoryListingEntry for OSX and linux. // Call these functions to get the html for a directory listing. // They will pass non-7bit-ascii characters unescaped, allowing // the browser to interpret the encoding (utf8, etc). std::string GetDirectoryListingHeader(const std::string& title); -std::string GetDirectoryListingEntry(const std::string& name, DWORD attrib, - int64 size, const FILETIME* modified); -#endif +std::string GetDirectoryListingEntry(const std::string& name, bool is_dir, + int64 size, const base::Time& modified); // If text starts with "www." it is removed, otherwise text is returned // unmodified. |