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

Side by Side Diff: net/ftp/ftp_directory_listing_parser_netware.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_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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698