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

Unified Diff: net/ftp/ftp_directory_listing_parsers.h

Issue 343073: Use the new FTP LIST parsing code in the browser. (Closed)
Patch Set: fixes Created 11 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/ftp/ftp_directory_listing_buffer.cc ('k') | webkit/glue/ftp_directory_listing_response_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ftp/ftp_directory_listing_parsers.h
diff --git a/net/ftp/ftp_directory_listing_parsers.h b/net/ftp/ftp_directory_listing_parsers.h
index 230c641814d9ec7c7a4af9086121377bae53f8c6..4608db5cbb1c4bce6debea11df7d7fcdbd2d3b60 100644
--- a/net/ftp/ftp_directory_listing_parsers.h
+++ b/net/ftp/ftp_directory_listing_parsers.h
@@ -33,6 +33,8 @@ class FtpDirectoryListingParser {
public:
virtual ~FtpDirectoryListingParser();
+ virtual FtpServerType GetServerType() const = 0;
+
// Adds |line| to the internal parsing buffer. Returns true on success.
virtual bool ConsumeLine(const string16& line) = 0;
@@ -50,6 +52,7 @@ class FtpLsDirectoryListingParser : public FtpDirectoryListingParser {
FtpLsDirectoryListingParser();
// FtpDirectoryListingParser methods:
+ virtual FtpServerType GetServerType() const { return SERVER_LSL; }
virtual bool ConsumeLine(const string16& line);
virtual bool EntryAvailable() const;
virtual FtpDirectoryListingEntry PopEntry();
@@ -66,6 +69,7 @@ class FtpVmsDirectoryListingParser : public FtpDirectoryListingParser {
FtpVmsDirectoryListingParser();
// FtpDirectoryListingParser methods:
+ virtual FtpServerType GetServerType() const { return SERVER_VMS; }
virtual bool ConsumeLine(const string16& line);
virtual bool EntryAvailable() const;
virtual FtpDirectoryListingEntry PopEntry();
« no previous file with comments | « net/ftp/ftp_directory_listing_buffer.cc ('k') | webkit/glue/ftp_directory_listing_response_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698