blob: 5eeeeae51b7850950bc1d1c5735a1071159d93f1 [file] [log] [blame]
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_FTP_FTP_DIRECTORY_LISTING_PARSER_LS_H_
#define NET_FTP_FTP_DIRECTORY_LISTING_PARSER_LS_H_
#pragma once
#include <vector>
#include "base/string16.h"
#include "net/base/net_api.h"
namespace base {
class Time;
}
namespace net {
struct FtpDirectoryListingEntry;
// Parses "ls -l" FTP directory listing. Returns true on success.
NET_TEST bool ParseFtpDirectoryListingLs(
const std::vector<string16>& lines,
const base::Time& current_time,
std::vector<FtpDirectoryListingEntry>* entries);
} // namespace net
#endif // NET_FTP_FTP_DIRECTORY_LISTING_PARSER_LS_H_