| Index: third_party/WebKit/Source/platform/network/ResourceResponse.h
|
| diff --git a/third_party/WebKit/Source/platform/network/ResourceResponse.h b/third_party/WebKit/Source/platform/network/ResourceResponse.h
|
| index 2b644b47d9167dd4cf94f852c1c2a772d4357e75..f26aa799c41da45668520ad3349a51352a334b86 100644
|
| --- a/third_party/WebKit/Source/platform/network/ResourceResponse.h
|
| +++ b/third_party/WebKit/Source/platform/network/ResourceResponse.h
|
| @@ -284,11 +284,14 @@ public:
|
| unsigned short remotePort() const { return m_remotePort; }
|
| void setRemotePort(unsigned short value) { m_remotePort = value; }
|
|
|
| + long long encodedDataLength() const { return m_encodedDataLength; }
|
| + void addToEncodedDataLength(long long value);
|
| +
|
| long long encodedBodyLength() const { return m_encodedBodyLength; }
|
| - void addToEncodedBodyLength(int value);
|
| + void addToEncodedBodyLength(long long value);
|
|
|
| long long decodedBodyLength() const { return m_decodedBodyLength; }
|
| - void addToDecodedBodyLength(int value);
|
| + void addToDecodedBodyLength(long long value);
|
|
|
| const String& downloadedFilePath() const { return m_downloadedFilePath; }
|
| void setDownloadedFilePath(const String&);
|
| @@ -303,6 +306,12 @@ public:
|
| return 1280;
|
| }
|
|
|
| + // PlzNavigate: Even if there is redirections, only one
|
| + // ResourceResponse is built: the final response.
|
| + // The redirect response chain can be accessed by this function.
|
| + const Vector<ResourceResponse>& redirectResponses() const { return m_redirectResponses; }
|
| + void appendRedirectResponse(const ResourceResponse&);
|
| +
|
| // This method doesn't compare the all members.
|
| static bool compare(const ResourceResponse&, const ResourceResponse&);
|
|
|
| @@ -413,6 +422,9 @@ private:
|
| // Remote port number of the socket which fetched this resource.
|
| unsigned short m_remotePort;
|
|
|
| + // Size of the response in bytes prior to decompression.
|
| + long long m_encodedDataLength;
|
| +
|
| // Size of the response body in bytes prior to decompression.
|
| long long m_encodedBodyLength;
|
|
|
| @@ -429,6 +441,10 @@ private:
|
|
|
| // ExtraData associated with the response.
|
| RefPtr<ExtraData> m_extraData;
|
| +
|
| + // PlzNavigate: the redirect responses are transmitted
|
| + // inside the final response.
|
| + Vector<ResourceResponse> m_redirectResponses;
|
| };
|
|
|
| inline bool operator==(const ResourceResponse& a, const ResourceResponse& b) { return ResourceResponse::compare(a, b); }
|
| @@ -471,6 +487,7 @@ public:
|
| int64_t m_responseTime;
|
| String m_remoteIPAddress;
|
| unsigned short m_remotePort;
|
| + long long m_encodedDataLength;
|
| long long m_encodedBodyLength;
|
| long long m_decodedBodyLength;
|
| String m_downloadedFilePath;
|
|
|