Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(373)

Side by Side Diff: net/ftp/ftp_directory_listing_parser_ls.cc

Issue 3076013: Move ASCIIToWide and ASCIIToUTF16 to utf_string_conversions.h. I've found it... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698