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

Unified Diff: content/public/child/fixed_received_data.h

Issue 2105713002: Render process changes for ResourceTiming sizes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@resource_timing_sizes_browser_process
Patch Set: Initialise encoded_body_length for sync XHR to data: URLs Created 4 years, 5 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 | « content/child/web_url_loader_impl_unittest.cc ('k') | content/public/child/fixed_received_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/child/fixed_received_data.h
diff --git a/content/public/child/fixed_received_data.h b/content/public/child/fixed_received_data.h
index c872c2df674a398702165b49a199749991c9262d..d9865ad73949121bc45d94a70847e8aaeece0769 100644
--- a/content/public/child/fixed_received_data.h
+++ b/content/public/child/fixed_received_data.h
@@ -18,18 +18,25 @@ namespace content {
class CONTENT_EXPORT FixedReceivedData final
: public RequestPeer::ThreadSafeReceivedData {
public:
- FixedReceivedData(const char* data, size_t length, int encoded_length);
+ FixedReceivedData(const char* data,
+ size_t length,
+ int encoded_data_length,
+ int encoded_body_length);
explicit FixedReceivedData(ReceivedData* data);
- FixedReceivedData(const std::vector<char>& data, int encoded_length);
+ FixedReceivedData(const std::vector<char>& data,
+ int encoded_data_length,
+ int encoded_body_length);
~FixedReceivedData() override;
const char* payload() const override;
int length() const override;
- int encoded_length() const override;
+ int encoded_data_length() const override;
+ int encoded_body_length() const override;
private:
std::vector<char> data_;
- int encoded_length_;
+ int encoded_data_length_;
+ int encoded_body_length_;
DISALLOW_COPY_AND_ASSIGN(FixedReceivedData);
};
« no previous file with comments | « content/child/web_url_loader_impl_unittest.cc ('k') | content/public/child/fixed_received_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698