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

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

Issue 3058027: Add #include utf_string_conversions.h to all files that use ASCIIToWide and... (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) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #include "net/ftp/ftp_directory_listing_parser_vms.h" 5 #include "net/ftp/ftp_directory_listing_parser_vms.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_util.h"
10 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
11 #include "base/string_util.h"
12 #include "net/ftp/ftp_util.h" 12 #include "net/ftp/ftp_util.h"
13 13
14 namespace { 14 namespace {
15 15
16 // Converts the filename component in listing to the filename we can display. 16 // Converts the filename component in listing to the filename we can display.
17 // Returns true on success. 17 // Returns true on success.
18 bool ParseVmsFilename(const string16& raw_filename, string16* parsed_filename, 18 bool ParseVmsFilename(const string16& raw_filename, string16* parsed_filename,
19 bool* is_directory) { 19 bool* is_directory) {
20 // On VMS, the files and directories are versioned. The version number is 20 // On VMS, the files and directories are versioned. The version number is
21 // separated from the file name by a semicolon. Example: ANNOUNCE.TXT;2. 21 // separated from the file name by a semicolon. Example: ANNOUNCE.TXT;2.
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 if (entry.type != FtpDirectoryListingEntry::FILE) 288 if (entry.type != FtpDirectoryListingEntry::FILE)
289 entry.size = -1; 289 entry.size = -1;
290 if (!VmsDateListingToTime(columns, &entry.last_modified)) 290 if (!VmsDateListingToTime(columns, &entry.last_modified))
291 return false; 291 return false;
292 292
293 entries_.push(entry); 293 entries_.push(entry);
294 return true; 294 return true;
295 } 295 }
296 296
297 } // namespace net 297 } // namespace net
OLDNEW
« no previous file with comments | « net/ftp/ftp_auth_cache_unittest.cc ('k') | net/ftp/ftp_directory_listing_parser_vms_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698