summaryrefslogtreecommitdiffstats
path: root/net/ftp/ftp_response_info.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/ftp/ftp_response_info.h')
-rw-r--r--net/ftp/ftp_response_info.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/net/ftp/ftp_response_info.h b/net/ftp/ftp_response_info.h
new file mode 100644
index 0000000..398f050
--- /dev/null
+++ b/net/ftp/ftp_response_info.h
@@ -0,0 +1,29 @@
+// Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this
+// source code is governed by a BSD-style license that can be found in the
+// LICENSE file.
+
+#ifndef NET_FTP_FTP_RESPONSE_INFO_H_
+#define NET_FTP_FTP_RESPONSE_INFO_H_
+
+#include "net/base/auth.h"
+
+namespace net {
+
+class FtpResponseInfo {
+ public:
+ // Non-null when authentication is required.
+ scoped_refptr<AuthChallengeInfo> auth_challenge;
+
+ // The length of the response. -1 means unspecified.
+ int64 content_length;
+
+ // True if the response data is of a directory listing.
+ bool is_directory_listing;
+
+ FtpResponseInfo() : content_length(-1), is_directory_listing(false) {
+ }
+};
+
+} // namespace net
+
+#endif // NET_FTP_FTP_RESPONSE_INFO_H_