| 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_netware.h" | 5 #include "net/ftp/ftp_directory_listing_parser_netware.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 LooksLikeNetwarePermissionsListing(const string16& text) { | 17 bool LooksLikeNetwarePermissionsListing(const string16& text) { |
| 17 if (text.length() != 10) | 18 if (text.length() != 10) |
| 18 return false; | 19 return false; |
| 19 | 20 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 return !entries_.empty(); | 98 return !entries_.empty(); |
| 98 } | 99 } |
| 99 | 100 |
| 100 FtpDirectoryListingEntry FtpDirectoryListingParserNetware::PopEntry() { | 101 FtpDirectoryListingEntry FtpDirectoryListingParserNetware::PopEntry() { |
| 101 FtpDirectoryListingEntry entry = entries_.front(); | 102 FtpDirectoryListingEntry entry = entries_.front(); |
| 102 entries_.pop(); | 103 entries_.pop(); |
| 103 return entry; | 104 return entry; |
| 104 } | 105 } |
| 105 | 106 |
| 106 } // namespace net | 107 } // namespace net |
| OLD | NEW |