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_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_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 LooksLikeUnixPermission(const string16& text) { | 15 bool LooksLikeUnixPermission(const string16& text) { |
15 if (text.length() != 3) | 16 if (text.length() != 3) |
16 return false; | 17 return false; |
17 | 18 |
18 // Meaning of the flags: | 19 // Meaning of the flags: |
19 // r - file is readable | 20 // r - file is readable |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 return !entries_.empty(); | 173 return !entries_.empty(); |
173 } | 174 } |
174 | 175 |
175 FtpDirectoryListingEntry FtpDirectoryListingParserLs::PopEntry() { | 176 FtpDirectoryListingEntry FtpDirectoryListingParserLs::PopEntry() { |
176 FtpDirectoryListingEntry entry = entries_.front(); | 177 FtpDirectoryListingEntry entry = entries_.front(); |
177 entries_.pop(); | 178 entries_.pop(); |
178 return entry; | 179 return entry; |
179 } | 180 } |
180 | 181 |
181 } // namespace net | 182 } // namespace net |
OLD | NEW |