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

Unified Diff: net/url_request/url_request_new_ftp_job.h

Issue 39130: FTP Transaction code for new Portable FTP(Patch SET-3) (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 7 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/ftp/ftp_transaction.h ('k') | net/url_request/url_request_new_ftp_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_new_ftp_job.h
===================================================================
--- net/url_request/url_request_new_ftp_job.h (revision 13921)
+++ net/url_request/url_request_new_ftp_job.h (working copy)
@@ -10,6 +10,8 @@
#include "net/base/auth.h"
#include "net/base/completion_callback.h"
+#include "net/ftp/ftp_request_info.h"
+#include "net/ftp/ftp_transaction.h"
#include "net/url_request/url_request_job.h"
class URLRequestContext;
@@ -29,10 +31,9 @@
// URLRequestJob methods:
virtual void Start();
virtual void Kill();
- virtual uint64 GetUploadProgress() const;
- virtual void GetResponseInfo();
- virtual int GetResponseCode() const;
- virtual bool GetMoreData();
+
+ // TODO(ibrar): Yet to give another look at this function.
+ virtual uint64 GetUploadProgress() const { return 0; }
virtual bool ReadRawData(net::IOBuffer* buf, int buf_size, int *bytes_read);
void NotifyHeadersComplete();
@@ -43,11 +44,17 @@
void OnStartCompleted(int result);
void OnReadCompleted(int result);
+
+ net::FtpRequestInfo request_info_;
+ scoped_ptr<net::FtpTransaction> transaction_;
+ const net::FtpResponseInfo* response_info_;
+
net::AuthState server_auth_state_;
net::CompletionCallbackImpl<URLRequestNewFtpJob> start_callback_;
net::CompletionCallbackImpl<URLRequestNewFtpJob> read_callback_;
+ std::string directory_html_;
bool read_in_progress_;
// Keep a reference to the url request context to be sure it's not deleted
« no previous file with comments | « net/ftp/ftp_transaction.h ('k') | net/url_request/url_request_new_ftp_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698