| Index: third_party/WebKit/Source/platform/network/ResourceResponse.cpp
|
| diff --git a/third_party/WebKit/Source/platform/network/ResourceResponse.cpp b/third_party/WebKit/Source/platform/network/ResourceResponse.cpp
|
| index ef0f9f9fbe437be83c8e7cd09c5e75a5703e4ef8..5266e31b8ad91fc5bc81109d63a6d4a2408a6d99 100644
|
| --- a/third_party/WebKit/Source/platform/network/ResourceResponse.cpp
|
| +++ b/third_party/WebKit/Source/platform/network/ResourceResponse.cpp
|
| @@ -104,6 +104,7 @@ ResourceResponse::ResourceResponse()
|
| , m_serviceWorkerResponseType(WebServiceWorkerResponseTypeDefault)
|
| , m_responseTime(0)
|
| , m_remotePort(0)
|
| + , m_encodedDataLength(0)
|
| , m_encodedBodyLength(0)
|
| , m_decodedBodyLength(0)
|
| {
|
| @@ -143,6 +144,7 @@ ResourceResponse::ResourceResponse(const KURL& url, const AtomicString& mimeType
|
| , m_serviceWorkerResponseType(WebServiceWorkerResponseTypeDefault)
|
| , m_responseTime(0)
|
| , m_remotePort(0)
|
| + , m_encodedDataLength(0)
|
| , m_encodedBodyLength(0)
|
| , m_decodedBodyLength(0)
|
| {
|
| @@ -195,6 +197,7 @@ ResourceResponse::ResourceResponse(CrossThreadResourceResponseData* data)
|
| m_responseTime = data->m_responseTime;
|
| m_remoteIPAddress = AtomicString(data->m_remoteIPAddress);
|
| m_remotePort = data->m_remotePort;
|
| + m_encodedDataLength = data->m_encodedDataLength;
|
| m_encodedBodyLength = data->m_encodedBodyLength;
|
| m_decodedBodyLength = data->m_decodedBodyLength;
|
| m_downloadedFilePath = data->m_downloadedFilePath;
|
| @@ -253,6 +256,7 @@ std::unique_ptr<CrossThreadResourceResponseData> ResourceResponse::copyData() co
|
| data->m_responseTime = m_responseTime;
|
| data->m_remoteIPAddress = m_remoteIPAddress.getString().isolatedCopy();
|
| data->m_remotePort = m_remotePort;
|
| + data->m_encodedDataLength = m_encodedDataLength;
|
| data->m_encodedBodyLength = m_encodedBodyLength;
|
| data->m_decodedBodyLength = m_decodedBodyLength;
|
| data->m_downloadedFilePath = m_downloadedFilePath.isolatedCopy();
|
| @@ -605,12 +609,17 @@ void ResourceResponse::setResourceLoadInfo(PassRefPtr<ResourceLoadInfo> loadInfo
|
| m_resourceLoadInfo = loadInfo;
|
| }
|
|
|
| -void ResourceResponse::addToEncodedBodyLength(int value)
|
| +void ResourceResponse::addToEncodedDataLength(long long value)
|
| +{
|
| + m_encodedDataLength += value;
|
| +}
|
| +
|
| +void ResourceResponse::addToEncodedBodyLength(long long value)
|
| {
|
| m_encodedBodyLength += value;
|
| }
|
|
|
| -void ResourceResponse::addToDecodedBodyLength(int value)
|
| +void ResourceResponse::addToDecodedBodyLength(long long value)
|
| {
|
| m_decodedBodyLength += value;
|
| }
|
| @@ -628,6 +637,11 @@ void ResourceResponse::setDownloadedFilePath(const String& downloadedFilePath)
|
| m_downloadedFileHandle = BlobDataHandle::create(std::move(blobData), -1);
|
| }
|
|
|
| +void ResourceResponse::appendRedirectResponse(const ResourceResponse& response)
|
| +{
|
| + m_redirectResponses.append(response);
|
| +}
|
| +
|
| bool ResourceResponse::compare(const ResourceResponse& a, const ResourceResponse& b)
|
| {
|
| if (a.isNull() != b.isNull())
|
|
|