| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // LICENSE file. |
| 4 |
| 5 #ifndef NET_FTP_FTP_DIRECTORY_LISTING_PARSER_WINDOWS_H_ |
| 6 #define NET_FTP_FTP_DIRECTORY_LISTING_PARSER_WINDOWS_H_ |
| 7 |
| 8 #include <queue> |
| 9 |
| 10 #include "net/ftp/ftp_directory_listing_parser.h" |
| 11 |
| 12 namespace net { |
| 13 |
| 14 class FtpDirectoryListingParserWindows : public FtpDirectoryListingParser { |
| 15 public: |
| 16 FtpDirectoryListingParserWindows(); |
| 17 |
| 18 // FtpDirectoryListingParser methods: |
| 19 virtual FtpServerType GetServerType() const { return SERVER_WINDOWS; } |
| 20 virtual bool ConsumeLine(const string16& line); |
| 21 virtual bool OnEndOfInput(); |
| 22 virtual bool EntryAvailable() const; |
| 23 virtual FtpDirectoryListingEntry PopEntry(); |
| 24 |
| 25 private: |
| 26 std::queue<FtpDirectoryListingEntry> entries_; |
| 27 |
| 28 DISALLOW_COPY_AND_ASSIGN(FtpDirectoryListingParserWindows); |
| 29 }; |
| 30 |
| 31 } // namespace net |
| 32 |
| 33 #endif // NET_FTP_FTP_DIRECTORY_LISTING_PARSER_WINDOWS_H_ |
| OLD | NEW |