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

Side by Side Diff: net/ftp/ftp_directory_listing_parser.h

Issue 18054010: Use a direct include of time headers in net/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
« no previous file with comments | « net/dns/record_parsed.h ('k') | net/ftp/ftp_directory_listing_parser_ls.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_FTP_FTP_DIRECTORY_LISTING_PARSER_H_ 5 #ifndef NET_FTP_FTP_DIRECTORY_LISTING_PARSER_H_
6 #define NET_FTP_FTP_DIRECTORY_LISTING_PARSER_H_ 6 #define NET_FTP_FTP_DIRECTORY_LISTING_PARSER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "base/time.h" 13 #include "base/time/time.h"
14 #include "net/base/net_export.h" 14 #include "net/base/net_export.h"
15 15
16 namespace net { 16 namespace net {
17 17
18 struct FtpDirectoryListingEntry { 18 struct FtpDirectoryListingEntry {
19 enum Type { 19 enum Type {
20 UNKNOWN, 20 UNKNOWN,
21 FILE, 21 FILE,
22 DIRECTORY, 22 DIRECTORY,
23 SYMLINK, 23 SYMLINK,
(...skipping 13 matching lines...) Expand all
37 // Parses an FTP directory listing |text|. On success fills in |entries|. 37 // Parses an FTP directory listing |text|. On success fills in |entries|.
38 // Returns network error code. 38 // Returns network error code.
39 NET_EXPORT int ParseFtpDirectoryListing( 39 NET_EXPORT int ParseFtpDirectoryListing(
40 const std::string& text, 40 const std::string& text,
41 const base::Time& current_time, 41 const base::Time& current_time,
42 std::vector<FtpDirectoryListingEntry>* entries); 42 std::vector<FtpDirectoryListingEntry>* entries);
43 43
44 } // namespace net 44 } // namespace net
45 45
46 #endif // NET_FTP_FTP_DIRECTORY_LISTING_PARSER_H_ 46 #endif // NET_FTP_FTP_DIRECTORY_LISTING_PARSER_H_
OLDNEW
« no previous file with comments | « net/dns/record_parsed.h ('k') | net/ftp/ftp_directory_listing_parser_ls.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698