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

Unified Diff: net/http/http_cache_transaction.cc

Issue 2298823002: Resetting the HttpRequestInfo pointers in HttpNetworkTransaction and streams (Closed)
Patch Set: Rebased, removed upload progress plumbing, feedback. (Rebased till refs/heads/master@{#417381}) Created 4 years, 3 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
Index: net/http/http_cache_transaction.cc
diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc
index 1727db15b7bce7e33df512d783a92a9b8a9e4e31..8e846dd543efd227042489b21eb177a2023621e9 100644
--- a/net/http/http_cache_transaction.cc
+++ b/net/http/http_cache_transaction.cc
@@ -473,12 +473,6 @@ LoadState HttpCache::Transaction::GetLoadState() const {
return LOAD_STATE_IDLE;
}
-UploadProgress HttpCache::Transaction::GetUploadProgress() const {
- if (network_trans_.get())
- return network_trans_->GetUploadProgress();
- return final_upload_progress_;
-}
-
void HttpCache::Transaction::SetQuicServerInfo(
QuicServerInfo* quic_server_info) {}
@@ -1555,7 +1549,6 @@ int HttpCache::Transaction::DoUpdateCachedResponseComplete(int result) {
mode_ = READ;
}
// We no longer need the network transaction, so destroy it.
- final_upload_progress_ = network_trans_->GetUploadProgress();
ResetNetworkTransaction();
} else if (entry_ && handling_206_ && truncated_ &&
partial_->initial_validation()) {

Powered by Google App Engine
This is Rietveld 408576698