diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-12 19:19:28 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-12 19:19:28 +0000 |
commit | bf5ad689ec6a922a8b8815fcf6223f2b3a22f025 (patch) | |
tree | 632b06b957cb15ee571cedfbdb9885815ee5cd98 /net/url_request | |
parent | 704dd3637a9e986f4636302c3ce11700fbdba4ab (diff) | |
download | chromium_src-bf5ad689ec6a922a8b8815fcf6223f2b3a22f025.zip chromium_src-bf5ad689ec6a922a8b8815fcf6223f2b3a22f025.tar.gz chromium_src-bf5ad689ec6a922a8b8815fcf6223f2b3a22f025.tar.bz2 |
Make FtpNetworkTransaction report its load state.
TEST=Covered by net_unittests.
http://crbug.com/19095
Review URL: http://codereview.chromium.org/164354
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23201 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request')
-rw-r--r-- | net/url_request/url_request_new_ftp_job.cc | 5 | ||||
-rw-r--r-- | net/url_request/url_request_new_ftp_job.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/net/url_request/url_request_new_ftp_job.cc b/net/url_request/url_request_new_ftp_job.cc index 5b16e7a..0de6c78 100644 --- a/net/url_request/url_request_new_ftp_job.cc +++ b/net/url_request/url_request_new_ftp_job.cc @@ -101,6 +101,11 @@ void URLRequestNewFtpJob::Kill() { URLRequestJob::Kill(); } +net::LoadState URLRequestNewFtpJob::GetLoadState() const { + return transaction_.get() ? + transaction_->GetLoadState() : net::LOAD_STATE_IDLE; +} + bool URLRequestNewFtpJob::ReadRawData(net::IOBuffer* buf, int buf_size, int *bytes_read) { diff --git a/net/url_request/url_request_new_ftp_job.h b/net/url_request/url_request_new_ftp_job.h index 4cca9a0..ebdb0e4 100644 --- a/net/url_request/url_request_new_ftp_job.h +++ b/net/url_request/url_request_new_ftp_job.h @@ -30,6 +30,7 @@ class URLRequestNewFtpJob : public URLRequestJob { // URLRequestJob methods: virtual void Start(); virtual void Kill(); + virtual net::LoadState GetLoadState() const; // TODO(ibrar): Yet to give another look at this function. virtual uint64 GetUploadProgress() const { return 0; } |