1 // Copyright (c) 2011 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_FTP_FTP_DIRECTORY_LISTING_PARSER_LS_H_ 6 #define NET_FTP_FTP_DIRECTORY_LISTING_PARSER_LS_H_ 7 #pragma once 8 9 #include <vector> 10 11 #include "base/string16.h" 12 13 namespace base { 14 class Time; 15 } 16 17 namespace net { 18 19 struct FtpDirectoryListingEntry; 20 21 // Parses "ls -l" FTP directory listing. Returns true on success. 22 bool ParseFtpDirectoryListingLs(const std::vector<string16>& lines, 23 const base::Time& current_time, 24 std::vector<FtpDirectoryListingEntry>* entries); 25 26 } // namespace net 27 28 #endif // NET_FTP_FTP_DIRECTORY_LISTING_PARSER_LS_H_ 29