| 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_vms.h" | 5 #include "net/ftp/ftp_directory_listing_parser_vms.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 "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
| 12 #include "net/ftp/ftp_util.h" | 13 #include "net/ftp/ftp_util.h" |
| 13 | 14 |
| 14 namespace { | 15 namespace { |
| 15 | 16 |
| 16 // Converts the filename component in listing to the filename we can display. | 17 // Converts the filename component in listing to the filename we can display. |
| 17 // Returns true on success. | 18 // Returns true on success. |
| 18 bool ParseVmsFilename(const string16& raw_filename, string16* parsed_filename, | 19 bool ParseVmsFilename(const string16& raw_filename, string16* parsed_filename, |
| 19 bool* is_directory) { | 20 bool* is_directory) { |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 if (entry.type != FtpDirectoryListingEntry::FILE) | 289 if (entry.type != FtpDirectoryListingEntry::FILE) |
| 289 entry.size = -1; | 290 entry.size = -1; |
| 290 if (!VmsDateListingToTime(columns, &entry.last_modified)) | 291 if (!VmsDateListingToTime(columns, &entry.last_modified)) |
| 291 return false; | 292 return false; |
| 292 | 293 |
| 293 entries_.push(entry); | 294 entries_.push(entry); |
| 294 return true; | 295 return true; |
| 295 } | 296 } |
| 296 | 297 |
| 297 } // namespace net | 298 } // namespace net |
| OLD | NEW |