| Index: content/common/service_worker/service_worker_types.cc
|
| diff --git a/content/common/service_worker/service_worker_types.cc b/content/common/service_worker/service_worker_types.cc
|
| index 4ebe7bdbda619b552247e55d752244e7bdfa4de4..a5847d4e12d8b2528c4f71defd4ab9a12bb1be57 100644
|
| --- a/content/common/service_worker/service_worker_types.cc
|
| +++ b/content/common/service_worker/service_worker_types.cc
|
| @@ -102,8 +102,41 @@ ServiceWorkerResponse::ServiceWorkerResponse(
|
| this->cors_exposed_header_names.swap(*cors_exposed_headers);
|
| }
|
|
|
| -ServiceWorkerResponse::ServiceWorkerResponse(
|
| - const ServiceWorkerResponse& other) = default;
|
| +ServiceWorkerResponse::ServiceWorkerResponse(const ServiceWorkerResponse& other)
|
| + : url_list(other.url_list),
|
| + status_code(other.status_code),
|
| + status_text(other.status_text),
|
| + response_type(other.response_type),
|
| + headers(other.headers),
|
| + blob_uuid(other.blob_uuid),
|
| + blob_size(other.blob_size),
|
| + error(other.error),
|
| + response_time(other.response_time),
|
| + is_in_cache_storage(other.is_in_cache_storage),
|
| + cache_storage_cache_name(other.cache_storage_cache_name),
|
| + cors_exposed_header_names(other.cors_exposed_header_names) {
|
| + if (other.blob)
|
| + other.blob->Clone(MakeRequest(&blob));
|
| +}
|
| +
|
| +ServiceWorkerResponse& ServiceWorkerResponse::operator=(
|
| + const ServiceWorkerResponse& other) {
|
| + url_list = other.url_list;
|
| + status_code = other.status_code;
|
| + status_text = other.status_text;
|
| + response_type = other.response_type;
|
| + headers = other.headers;
|
| + blob_uuid = other.blob_uuid;
|
| + blob_size = other.blob_size;
|
| + if (other.blob)
|
| + other.blob->Clone(MakeRequest(&blob));
|
| + error = other.error;
|
| + response_time = other.response_time;
|
| + is_in_cache_storage = other.is_in_cache_storage;
|
| + cache_storage_cache_name = other.cache_storage_cache_name;
|
| + cors_exposed_header_names = other.cors_exposed_header_names;
|
| + return *this;
|
| +}
|
|
|
| ServiceWorkerResponse::~ServiceWorkerResponse() {}
|
|
|
|
|