| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_ls.h" | 5 #include "net/ftp/ftp_directory_listing_parser_ls.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 bool LooksLikeUnixPermission(const string16& text) { | 17 bool LooksLikeUnixPermission(const string16& text) { |
| 17 if (text.length() != 3) | 18 if (text.length() != 3) |
| 18 return false; | 19 return false; |
| 19 | 20 |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 return !entries_.empty(); | 175 return !entries_.empty(); |
| 175 } | 176 } |
| 176 | 177 |
| 177 FtpDirectoryListingEntry FtpDirectoryListingParserLs::PopEntry() { | 178 FtpDirectoryListingEntry FtpDirectoryListingParserLs::PopEntry() { |
| 178 FtpDirectoryListingEntry entry = entries_.front(); | 179 FtpDirectoryListingEntry entry = entries_.front(); |
| 179 entries_.pop(); | 180 entries_.pop(); |
| 180 return entry; | 181 return entry; |
| 181 } | 182 } |
| 182 | 183 |
| 183 } // namespace net | 184 } // namespace net |
| OLD | NEW |