| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/ftp/ftp_directory_listing_parser_windows.h" | 5 #include "net/ftp/ftp_directory_listing_parser_windows.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/string_number_conversions.h" | 9 #include "base/string_number_conversions.h" |
| 10 #include "base/string_split.h" |
| 10 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 11 #include "net/ftp/ftp_util.h" | 12 #include "net/ftp/ftp_util.h" |
| 12 | 13 |
| 13 namespace { | 14 namespace { |
| 14 | 15 |
| 15 bool WindowsDateListingToTime(const std::vector<string16>& columns, | 16 bool WindowsDateListingToTime(const std::vector<string16>& columns, |
| 16 base::Time* time) { | 17 base::Time* time) { |
| 17 DCHECK_LE(4U, columns.size()); | 18 DCHECK_LE(4U, columns.size()); |
| 18 | 19 |
| 19 base::Time::Exploded time_exploded = { 0 }; | 20 base::Time::Exploded time_exploded = { 0 }; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 return !entries_.empty(); | 114 return !entries_.empty(); |
| 114 } | 115 } |
| 115 | 116 |
| 116 FtpDirectoryListingEntry FtpDirectoryListingParserWindows::PopEntry() { | 117 FtpDirectoryListingEntry FtpDirectoryListingParserWindows::PopEntry() { |
| 117 FtpDirectoryListingEntry entry = entries_.front(); | 118 FtpDirectoryListingEntry entry = entries_.front(); |
| 118 entries_.pop(); | 119 entries_.pop(); |
| 119 return entry; | 120 return entry; |
| 120 } | 121 } |
| 121 | 122 |
| 122 } // namespace net | 123 } // namespace net |
| OLD | NEW |