| Index: third_party/WebKit/Source/platform/loader/fetch/ResourceResponse.cpp
|
| diff --git a/third_party/WebKit/Source/platform/loader/fetch/ResourceResponse.cpp b/third_party/WebKit/Source/platform/loader/fetch/ResourceResponse.cpp
|
| index ff94534708aa30acb2cff7c44414da04d991bea6..ae852e1fb59ed829239d1fc8f6c03b5fb494f04a 100644
|
| --- a/third_party/WebKit/Source/platform/loader/fetch/ResourceResponse.cpp
|
| +++ b/third_party/WebKit/Source/platform/loader/fetch/ResourceResponse.cpp
|
| @@ -101,6 +101,8 @@ ResourceResponse::ResourceResponse()
|
| last_modified_(0.0),
|
| app_cache_id_(0),
|
| response_time_(0),
|
| + connection_info_(
|
| + net::HttpResponseInfo::ConnectionInfo::CONNECTION_INFO_UNKNOWN),
|
| encoded_data_length_(0),
|
| encoded_body_length_(0),
|
| decoded_body_length_(0) {}
|
| @@ -572,6 +574,14 @@ KURL ResourceResponse::OriginalURLViaServiceWorker() const {
|
| return url_list_via_service_worker_.back();
|
| }
|
|
|
| +AtomicString ResourceResponse::ConnectionInfoString() const {
|
| + std::string connection_info_string =
|
| + net::HttpResponseInfo::ConnectionInfoToString(connection_info_);
|
| + return AtomicString(
|
| + reinterpret_cast<const LChar*>(connection_info_string.data()),
|
| + connection_info_string.length());
|
| +}
|
| +
|
| void ResourceResponse::SetEncodedDataLength(long long value) {
|
| encoded_data_length_ = value;
|
| }
|
|
|