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

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

Issue 5574006: Start deinlining non-empty virtual methods. (This will be automatically checked (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove virtual from VideoFrame::type() Created 10 years 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
OLDNEW
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_VMS_H_ 5 #ifndef NET_FTP_FTP_DIRECTORY_LISTING_PARSER_VMS_H_
6 #define NET_FTP_FTP_DIRECTORY_LISTING_PARSER_VMS_H_ 6 #define NET_FTP_FTP_DIRECTORY_LISTING_PARSER_VMS_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 // Parser for VMS-style directory listing (including variants). 15 // Parser for VMS-style directory listing (including variants).
16 class FtpDirectoryListingParserVms : public FtpDirectoryListingParser { 16 class FtpDirectoryListingParserVms : public FtpDirectoryListingParser {
17 public: 17 public:
18 FtpDirectoryListingParserVms(); 18 FtpDirectoryListingParserVms();
19 virtual ~FtpDirectoryListingParserVms(); 19 virtual ~FtpDirectoryListingParserVms();
20 20
21 // FtpDirectoryListingParser methods: 21 // FtpDirectoryListingParser methods:
22 virtual FtpServerType GetServerType() const { return SERVER_VMS; } 22 virtual FtpServerType GetServerType() const;
23 virtual bool ConsumeLine(const string16& line); 23 virtual bool ConsumeLine(const string16& line);
24 virtual bool OnEndOfInput(); 24 virtual bool OnEndOfInput();
25 virtual bool EntryAvailable() const; 25 virtual bool EntryAvailable() const;
26 virtual FtpDirectoryListingEntry PopEntry(); 26 virtual FtpDirectoryListingEntry PopEntry();
27 27
28 private: 28 private:
29 // Consumes listing line which is expected to be a directory listing entry 29 // Consumes listing line which is expected to be a directory listing entry
30 // (and not a comment etc). Returns true on success. 30 // (and not a comment etc). Returns true on success.
31 bool ConsumeEntryLine(const string16& line); 31 bool ConsumeEntryLine(const string16& line);
32 32
(...skipping 22 matching lines...) Expand all
55 bool last_is_directory_; 55 bool last_is_directory_;
56 56
57 std::queue<FtpDirectoryListingEntry> entries_; 57 std::queue<FtpDirectoryListingEntry> entries_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(FtpDirectoryListingParserVms); 59 DISALLOW_COPY_AND_ASSIGN(FtpDirectoryListingParserVms);
60 }; 60 };
61 61
62 } // namespace net 62 } // namespace net
63 63
64 #endif // NET_FTP_FTP_DIRECTORY_LISTING_PARSER_VMS_H_ 64 #endif // NET_FTP_FTP_DIRECTORY_LISTING_PARSER_VMS_H_
OLDNEW
« no previous file with comments | « net/ftp/ftp_directory_listing_parser_netware.cc ('k') | net/ftp/ftp_directory_listing_parser_vms.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698