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

Unified Diff: content/browser/streams/stream_url_request_job.h

Issue 2612683002: PlzNavigate: Pass the encoded resource transfer size to the renderer. (Closed)
Patch Set: PlzNavigate: Pass the encoded resource transfer size to the renderer. Created 3 years, 12 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
« no previous file with comments | « no previous file | content/browser/streams/stream_url_request_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/streams/stream_url_request_job.h
diff --git a/content/browser/streams/stream_url_request_job.h b/content/browser/streams/stream_url_request_job.h
index ffa36fe56586f67dde5c6eb5150473b415cef09c..741af056485923b25cd7f58011d4b7115760f5b3 100644
--- a/content/browser/streams/stream_url_request_job.h
+++ b/content/browser/streams/stream_url_request_job.h
@@ -34,6 +34,7 @@ class CONTENT_EXPORT StreamURLRequestJob
bool GetMimeType(std::string* mime_type) const override;
void GetResponseInfo(net::HttpResponseInfo* info) override;
int GetResponseCode() const override;
+ int64_t GetTotalReceivedBytes() const override;
protected:
~StreamURLRequestJob() override;
@@ -50,6 +51,7 @@ class CONTENT_EXPORT StreamURLRequestJob
int pending_buffer_size_;
std::unique_ptr<net::HttpResponseInfo> response_info_;
+ // Total bytes received for this job.
int total_bytes_read_;
int max_range_;
bool request_failed_;
« no previous file with comments | « no previous file | content/browser/streams/stream_url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698