OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the 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" | |
11 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| 11 #include "base/strings/string_split.h" |
12 #include "base/time.h" | 12 #include "base/time.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "net/ftp/ftp_directory_listing_parser.h" | 14 #include "net/ftp/ftp_directory_listing_parser.h" |
15 #include "net/ftp/ftp_util.h" | 15 #include "net/ftp/ftp_util.h" |
16 | 16 |
17 namespace net { | 17 namespace net { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 // Converts the filename component in listing to the filename we can display. | 21 // Converts the filename component in listing to the filename we can display. |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 entries->push_back(entry); | 282 entries->push_back(entry); |
283 } | 283 } |
284 | 284 |
285 // The only place where we return true is after receiving the "Total" line, | 285 // The only place where we return true is after receiving the "Total" line, |
286 // that should be present in every VMS listing. Alternatively, if the listing | 286 // that should be present in every VMS listing. Alternatively, if the listing |
287 // contains error messages, it's OK not to have the "Total" line. | 287 // contains error messages, it's OK not to have the "Total" line. |
288 return seen_error; | 288 return seen_error; |
289 } | 289 } |
290 | 290 |
291 } // namespace net | 291 } // namespace net |
OLD | NEW |