Lines Matching refs:request_
128 scoped_ptr<net::URLRequest> request_; // The actual request this wraps
238 request_(NULL),
248 // |request_| should be NULL. If not, it's unsafe to delete it here since we
250 DCHECK(!request_.get());
287 DCHECK_EQ(request, request_.get());
289 if (request_->status().is_success()) {
290 response_code_ = request_->GetResponseCode();
291 response_headers_ = request_->response_headers();
299 if (request_->status().is_success() && (request_type_ != HEAD))
300 request_->Read(buffer_, kBufferSize, &bytes_read);
301 OnReadCompleted(request_.get(), bytes_read);
307 DCHECK(request_.get());
309 request_->AppendChunkToUpload(content.data(),
326 DCHECK(request == request_);
334 if (!request_->status().is_success() || bytes_read <= 0)
337 } while (request_->Read(buffer_, kBufferSize, &bytes_read));
339 if (request_->status().is_success())
340 request_->GetResponseCookies(&cookies_);
343 if (!request_->status().is_io_pending() || (request_type_ == HEAD)) {
350 request_->status()));
368 DCHECK(!request_.get());
371 request_.reset(new net::URLRequest(original_url_, this));
372 int flags = request_->load_flags() | load_flags_;
377 request_->EnableChunkedUpload();
378 request_->set_load_flags(flags);
379 request_->set_context(request_context_getter_->GetURLRequestContext());
380 request_->set_referrer(referrer_);
390 request_->set_method("POST");
394 request_->AppendBytesToUpload(
400 request_->set_method("HEAD");
408 request_->SetExtraRequestHeaders(extra_request_headers_);
413 request_->Start();
443 if (request_.get()) {
444 request_->Cancel();
497 request_.reset();