| 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_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_util.h" | 9 #include "base/string_util.h" |
| 10 #include "base/utf_string_conversions.h" |
| 10 #include "net/ftp/ftp_util.h" | 11 #include "net/ftp/ftp_util.h" |
| 11 | 12 |
| 12 namespace { | 13 namespace { |
| 13 | 14 |
| 14 bool LooksLikeNetwarePermissionsListing(const string16& text) { | 15 bool LooksLikeNetwarePermissionsListing(const string16& text) { |
| 15 if (text.length() != 10) | 16 if (text.length() != 10) |
| 16 return false; | 17 return false; |
| 17 | 18 |
| 18 if (text[0] != '[' || text[9] != ']') | 19 if (text[0] != '[' || text[9] != ']') |
| 19 return false; | 20 return false; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 return !entries_.empty(); | 96 return !entries_.empty(); |
| 96 } | 97 } |
| 97 | 98 |
| 98 FtpDirectoryListingEntry FtpDirectoryListingParserNetware::PopEntry() { | 99 FtpDirectoryListingEntry FtpDirectoryListingParserNetware::PopEntry() { |
| 99 FtpDirectoryListingEntry entry = entries_.front(); | 100 FtpDirectoryListingEntry entry = entries_.front(); |
| 100 entries_.pop(); | 101 entries_.pop(); |
| 101 return entry; | 102 return entry; |
| 102 } | 103 } |
| 103 | 104 |
| 104 } // namespace net | 105 } // namespace net |
| OLD | NEW |