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

Unified Diff: net/ftp/ftp_directory_listing_buffer.h

Issue 421006: Fix recognizing FTP listings consisting of only one line. (Closed)
Patch Set: 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/data/ftp/dir-listing-ls-5.expected ('k') | net/ftp/ftp_directory_listing_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ftp/ftp_directory_listing_buffer.h
diff --git a/net/ftp/ftp_directory_listing_buffer.h b/net/ftp/ftp_directory_listing_buffer.h
index 948913586b03c973913f3c16fb7865c3d0cf5b36..f71685c51af8173ee8fff3395a8ced28498e0b4e 100644
--- a/net/ftp/ftp_directory_listing_buffer.h
+++ b/net/ftp/ftp_directory_listing_buffer.h
@@ -57,6 +57,10 @@ class FtpDirectoryListingBuffer {
// Tries to parse full lines stored in |lines_|. Returns network error code.
int ParseLines();
+ // Called when we received the entire input. Propagates that info to remaining
+ // parsers. Returns network error code.
+ int OnEndOfInput();
+
// Detected encoding of the response (empty if unknown or ASCII).
std::string encoding_;
« no previous file with comments | « net/data/ftp/dir-listing-ls-5.expected ('k') | net/ftp/ftp_directory_listing_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698