Lines Matching refs:partial_
145 if (partial_.get()) {
188 if (partial_.get() && !truncated_)
334 DCHECK(partial_.get());
616 if (partial_.get())
617 partial_->RestoreHeaders(&custom_request_->extra_headers);
820 if (partial_.get())
821 partial_->RestoreHeaders(&custom_request_->extra_headers);
891 if (partial_.get())
892 partial_->RestoreHeaders(&custom_request_->extra_headers);
959 return partial_->ShouldValidateCache(entry_->disk_entry, &io_callback_);
977 partial_->PrepareCacheValidation(entry_->disk_entry,
980 if (reading_ && partial_->IsCurrentRangeCached()) {
1024 if (!partial_.get() || partial_->IsLastRange()) {
1032 partial_->initial_validation()) {
1039 partial_->SetRangeToStartDownload();
1053 if (server_responded_206_ && partial_.get())
1054 partial_->FixContentLength(new_response_->headers);
1061 if (partial_.get())
1062 partial_->FixResponseHeaders(response_.headers, true);
1127 if (entry_ && !partial_.get() &&
1131 if (!partial_.get())
1143 partial_->FixResponseHeaders(response_.headers, true);
1258 if (partial_.get()) {
1259 return partial_->CacheRead(entry_->disk_entry, read_buf_, io_buf_len_,
1277 if (partial_.get())
1318 if (partial_.get()) {
1321 (partial_->IsLastRange() || mode_ == WRITE)))
1420 partial_.reset(new PartialData);
1421 if (partial_->Init(request_->extra_headers)) {
1427 partial_->SetHeaders(custom_request_->extra_headers);
1432 partial_.reset(NULL);
1464 if (response_.headers->response_code() == 206 || partial_.get()) {
1486 skip_validation = !partial_->initial_validation();
1488 if ((partial_.get() && !partial_->IsCurrentRangeCached()) || invalid_range_)
1492 if (partial_.get()) {
1509 DCHECK(!partial_.get());
1521 if (response_.headers->response_code() != 206 && !partial_.get() &&
1525 bool byte_range_requested = partial_.get() != NULL;
1531 partial_.reset(new PartialData());
1532 partial_->SetHeaders(request_->extra_headers);
1546 if (!partial_->UpdateFromStoredHeaders(response_.headers, entry_->disk_entry,
1560 if (!partial_->IsRequestedRangeOK()) {
1682 if (!partial_.get()) {
1689 bool use_if_range = partial_.get() && !partial_->IsCurrentRangeCached() &&
1704 if (partial_.get() && !partial_->IsCurrentRangeCached())
1722 // in which case partial_ has an object. This could be the first network request
1726 // delete partial_ (so we are not able to "fix" the headers that we return to
1764 if (!partial_.get()) {
1775 if (partial_->IsCurrentRangeCached()) {
1780 if (response_code == 304 && partial_->ResponseHeadersOK(headers))
1784 if (partial_response && partial_->ResponseHeadersOK(headers)) {
1794 DCHECK(!partial_->IsLastRange());
1795 partial_.reset();
1807 if (!reading_ && !partial_->IsLastRange()) {
1810 partial_->RestoreHeaders(&custom_request_->extra_headers);
1811 partial_.reset();
1816 partial_.reset();
1835 partial_.reset(NULL);
1842 partial_->FixResponseHeaders(response_.headers, false);
1866 if (!partial_.get() || !data_len) {
1870 rv = partial_->CacheWrite(entry_->disk_entry, data, data_len, callback);
1947 partial_.reset(NULL);
1951 partial_->OnNetworkReadCompleted(result);
1962 partial_->OnCacheReadCompleted(result);