| 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. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // LICENSE file. |
| 4 | 4 |
| 5 #include "net/ftp/ftp_directory_listing_parser_mlsd.h" | 5 #include "net/ftp/ftp_directory_listing_parser_mlsd.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/stl_util-inl.h" | 10 #include "base/stl_util-inl.h" |
| 11 #include "base/string_number_conversions.h" | 11 #include "base/string_number_conversions.h" |
| 12 #include "base/string_split.h" |
| 12 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 13 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
| 14 | 15 |
| 15 // You can read the specification of the MLSD format at | 16 // You can read the specification of the MLSD format at |
| 16 // http://tools.ietf.org/html/rfc3659#page-23. | 17 // http://tools.ietf.org/html/rfc3659#page-23. |
| 17 | 18 |
| 18 namespace { | 19 namespace { |
| 19 | 20 |
| 20 // The MLSD date listing is specified at | 21 // The MLSD date listing is specified at |
| 21 // http://tools.ietf.org/html/rfc3659#page-6. | 22 // http://tools.ietf.org/html/rfc3659#page-6. |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 } | 124 } |
| 124 | 125 |
| 125 FtpDirectoryListingEntry FtpDirectoryListingParserMlsd::PopEntry() { | 126 FtpDirectoryListingEntry FtpDirectoryListingParserMlsd::PopEntry() { |
| 126 DCHECK(EntryAvailable()); | 127 DCHECK(EntryAvailable()); |
| 127 FtpDirectoryListingEntry entry = entries_.front(); | 128 FtpDirectoryListingEntry entry = entries_.front(); |
| 128 entries_.pop(); | 129 entries_.pop(); |
| 129 return entry; | 130 return entry; |
| 130 } | 131 } |
| 131 | 132 |
| 132 } // namespace net | 133 } // namespace net |
| OLD | NEW |