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

Unified Diff: content/common/service_worker/service_worker_types.cc

Issue 2892953006: WIP POC blob transport over mojo
Patch Set: pass mojo blobs over ipc Created 3 years, 7 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
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() {}
« no previous file with comments | « content/common/service_worker/service_worker_types.h ('k') | content/public/app/mojo/content_browser_manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698