| Index: net/url_request/url_request_job.cc
|
| diff --git a/net/url_request/url_request_job.cc b/net/url_request/url_request_job.cc
|
| index 486d8c0d2472afdbcd7b41e04f46a17ae96a798e..d4a626cd5252d8c18af94595b3c759d419ce0e73 100644
|
| --- a/net/url_request/url_request_job.cc
|
| +++ b/net/url_request/url_request_job.cc
|
| @@ -53,6 +53,13 @@ URLRequestJob::~URLRequestJob() {
|
| g_url_request_job_tracker.RemoveJob(this);
|
| }
|
|
|
| +void URLRequestJob::SetUpload(net::UploadData* upload) {
|
| +}
|
| +
|
| +void URLRequestJob::SetExtraRequestHeaders(
|
| + const net::HttpRequestHeaders& headers) {
|
| +}
|
| +
|
| void URLRequestJob::Kill() {
|
| // Make sure the request is notified that we are done. We assume that the
|
| // request took care of setting its error status before calling Kill.
|
| @@ -64,10 +71,6 @@ void URLRequestJob::DetachRequest() {
|
| request_ = NULL;
|
| }
|
|
|
| -bool URLRequestJob::IsDownload() const {
|
| - return (load_flags_ & net::LOAD_IS_DOWNLOAD) != 0;
|
| -}
|
| -
|
| void URLRequestJob::SetupFilter() {
|
| std::vector<Filter::FilterType> encoding_types;
|
| if (GetContentEncodings(&encoding_types)) {
|
| @@ -91,6 +94,14 @@ bool URLRequestJob::IsRedirectResponse(GURL* location,
|
| return true;
|
| }
|
|
|
| +bool URLRequestJob::IsSafeRedirect(const GURL& location) {
|
| + return true;
|
| +}
|
| +
|
| +bool URLRequestJob::NeedsAuth() {
|
| + return false;
|
| +}
|
| +
|
| void URLRequestJob::GetAuthChallengeInfo(
|
| scoped_refptr<net::AuthChallengeInfo>* auth_info) {
|
| // This will only be called if NeedsAuth() returns true, in which
|
| @@ -147,6 +158,10 @@ int64 URLRequestJob::GetByteReadCount() const {
|
| return filter_input_byte_count_;
|
| }
|
|
|
| +bool URLRequestJob::GetMimeType(std::string* mime_type) const {
|
| + return false;
|
| +}
|
| +
|
| bool URLRequestJob::GetURL(GURL* gurl) const {
|
| if (!request_)
|
| return false;
|
| @@ -160,6 +175,18 @@ base::Time URLRequestJob::GetRequestTime() const {
|
| return request_->request_time();
|
| };
|
|
|
| +bool URLRequestJob::IsCachedContent() const {
|
| + return false;
|
| +}
|
| +
|
| +int URLRequestJob::GetResponseCode() const {
|
| + return -1;
|
| +}
|
| +
|
| +int URLRequestJob::GetInputStreamBufferSize() const {
|
| + return kFilterBufSize;
|
| +}
|
| +
|
| // This function calls ReadData to get stream data. If a filter exists, passes
|
| // the data to the attached filter. Then returns the output from filter back to
|
| // the caller.
|
| @@ -198,6 +225,38 @@ void URLRequestJob::StopCaching() {
|
| // Nothing to do here.
|
| }
|
|
|
| +net::LoadState URLRequestJob::GetLoadState() const {
|
| + return net::LOAD_STATE_IDLE;
|
| +}
|
| +
|
| +uint64 URLRequestJob::GetUploadProgress() const {
|
| + return 0;
|
| +}
|
| +
|
| +bool URLRequestJob::GetCharset(std::string* charset) {
|
| + return false;
|
| +}
|
| +
|
| +void URLRequestJob::GetResponseInfo(net::HttpResponseInfo* info) {
|
| +}
|
| +
|
| +bool URLRequestJob::GetResponseCookies(std::vector<std::string>* cookies) {
|
| + return false;
|
| +}
|
| +
|
| +bool URLRequestJob::GetContentEncodings(
|
| + std::vector<Filter::FilterType>* encoding_types) {
|
| + return false;
|
| +}
|
| +
|
| +bool URLRequestJob::IsDownload() const {
|
| + return (load_flags_ & net::LOAD_IS_DOWNLOAD) != 0;
|
| +}
|
| +
|
| +bool URLRequestJob::IsSdchResponse() const {
|
| + return false;
|
| +}
|
| +
|
| bool URLRequestJob::ReadRawDataForFilter(int* bytes_read) {
|
| bool rv = false;
|
|
|
|
|