summaryrefslogtreecommitdiffstats
path: root/net/ftp/ftp_ctrl_response_buffer.h
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-18 20:21:31 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-18 20:21:31 +0000
commitb104b50ddb1d70d95ff9ace7a6fb30ec3b1aeb17 (patch)
tree0d35c3f624aec7c6de8824fab2b9521bfff1dbff /net/ftp/ftp_ctrl_response_buffer.h
parentd13509f32546e26332733ac6153d359fbd566eaa (diff)
downloadchromium_src-b104b50ddb1d70d95ff9ace7a6fb30ec3b1aeb17.zip
chromium_src-b104b50ddb1d70d95ff9ace7a6fb30ec3b1aeb17.tar.gz
chromium_src-b104b50ddb1d70d95ff9ace7a6fb30ec3b1aeb17.tar.bz2
FBTF: Monster ctor patch after changing heuristics in clang plugin.
(Only 916k this time off Debug Linux .a files) BUG=none TEST=compiles Review URL: http://codereview.chromium.org/3814013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62967 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/ftp/ftp_ctrl_response_buffer.h')
-rw-r--r--net/ftp/ftp_ctrl_response_buffer.h19
1 files changed, 6 insertions, 13 deletions
diff --git a/net/ftp/ftp_ctrl_response_buffer.h b/net/ftp/ftp_ctrl_response_buffer.h
index b98f494..219a2d4 100644
--- a/net/ftp/ftp_ctrl_response_buffer.h
+++ b/net/ftp/ftp_ctrl_response_buffer.h
@@ -18,7 +18,8 @@ namespace net {
struct FtpCtrlResponse {
static const int kInvalidStatusCode;
- FtpCtrlResponse() : status_code(kInvalidStatusCode) {}
+ FtpCtrlResponse();
+ ~FtpCtrlResponse();
int status_code; // Three-digit status code.
std::vector<std::string> lines; // Response lines, without CRLFs.
@@ -26,7 +27,8 @@ struct FtpCtrlResponse {
class FtpCtrlResponseBuffer {
public:
- FtpCtrlResponseBuffer() : multiline_(false) {}
+ FtpCtrlResponseBuffer();
+ ~FtpCtrlResponseBuffer();
// Called when data is received from the control socket. Returns error code.
int ConsumeData(const char* data, int data_length);
@@ -37,20 +39,11 @@ class FtpCtrlResponseBuffer {
// Returns the next response. It is an error to call this function
// unless ResponseAvailable returns true.
- FtpCtrlResponse PopResponse() {
- FtpCtrlResponse result = responses_.front();
- responses_.pop();
- return result;
- }
+ FtpCtrlResponse PopResponse();
private:
struct ParsedLine {
- ParsedLine()
- : has_status_code(false),
- is_multiline(false),
- is_complete(false),
- status_code(FtpCtrlResponse::kInvalidStatusCode) {
- }
+ ParsedLine();
// Indicates that this line begins with a valid 3-digit status code.
bool has_status_code;