OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_WINDOWS_H_ | 5 #ifndef NET_FTP_FTP_DIRECTORY_LISTING_PARSER_WINDOWS_H_ |
6 #define NET_FTP_FTP_DIRECTORY_LISTING_PARSER_WINDOWS_H_ | 6 #define NET_FTP_FTP_DIRECTORY_LISTING_PARSER_WINDOWS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <queue> | 9 #include <queue> |
10 | 10 |
11 #include "net/ftp/ftp_directory_listing_parser.h" | 11 #include "net/ftp/ftp_directory_listing_parser.h" |
12 | 12 |
13 namespace net { | 13 namespace net { |
14 | 14 |
15 class FtpDirectoryListingParserWindows : public FtpDirectoryListingParser { | 15 class FtpDirectoryListingParserWindows : public FtpDirectoryListingParser { |
16 public: | 16 public: |
17 FtpDirectoryListingParserWindows(); | 17 FtpDirectoryListingParserWindows(); |
18 virtual ~FtpDirectoryListingParserWindows(); | 18 virtual ~FtpDirectoryListingParserWindows(); |
19 | 19 |
20 // FtpDirectoryListingParser methods: | 20 // FtpDirectoryListingParser methods: |
21 virtual FtpServerType GetServerType() const { return SERVER_WINDOWS; } | 21 virtual FtpServerType GetServerType() const; |
22 virtual bool ConsumeLine(const string16& line); | 22 virtual bool ConsumeLine(const string16& line); |
23 virtual bool OnEndOfInput(); | 23 virtual bool OnEndOfInput(); |
24 virtual bool EntryAvailable() const; | 24 virtual bool EntryAvailable() const; |
25 virtual FtpDirectoryListingEntry PopEntry(); | 25 virtual FtpDirectoryListingEntry PopEntry(); |
26 | 26 |
27 private: | 27 private: |
28 std::queue<FtpDirectoryListingEntry> entries_; | 28 std::queue<FtpDirectoryListingEntry> entries_; |
29 | 29 |
30 DISALLOW_COPY_AND_ASSIGN(FtpDirectoryListingParserWindows); | 30 DISALLOW_COPY_AND_ASSIGN(FtpDirectoryListingParserWindows); |
31 }; | 31 }; |
32 | 32 |
33 } // namespace net | 33 } // namespace net |
34 | 34 |
35 #endif // NET_FTP_FTP_DIRECTORY_LISTING_PARSER_WINDOWS_H_ | 35 #endif // NET_FTP_FTP_DIRECTORY_LISTING_PARSER_WINDOWS_H_ |
OLD | NEW |