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

Unified Diff: net/test/url_request/url_request_failed_job.h

Issue 2514713002: Send encoded_body_length to renderer when response completed (1/3) (Closed)
Patch Set: merge https://codereview.chromium.org/2526653002/ Created 4 years, 1 month 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
« no previous file with comments | « content/common/resource_request_completion_status.h ('k') | net/test/url_request/url_request_failed_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/url_request/url_request_failed_job.h
diff --git a/net/test/url_request/url_request_failed_job.h b/net/test/url_request/url_request_failed_job.h
index 14c7efc9f5a9b9d466e0d2df49e43cd021bb1795..0c11c66dc8690210e6da4d16b600a2cd24ba5480 100644
--- a/net/test/url_request/url_request_failed_job.h
+++ b/net/test/url_request/url_request_failed_job.h
@@ -44,6 +44,7 @@ class URLRequestFailedJob : public URLRequestJob {
int GetResponseCode() const override;
void GetResponseInfo(HttpResponseInfo* info) override;
void PopulateNetErrorDetails(NetErrorDetails* details) const override;
+ int64_t GetTotalReceivedBytes() const override;
// Adds the testing URLs to the URLRequestFilter.
static void AddUrlHandler();
@@ -79,6 +80,7 @@ class URLRequestFailedJob : public URLRequestJob {
HttpResponseInfo response_info_;
const FailurePhase phase_;
const int net_error_;
+ int64_t total_received_bytes_;
base::WeakPtrFactory<URLRequestFailedJob> weak_factory_;
« no previous file with comments | « content/common/resource_request_completion_status.h ('k') | net/test/url_request/url_request_failed_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698