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

Unified Diff: content/common/service_worker/service_worker_messages.h

Issue 2703343002: ServiceWorker: Use mojo's data pipe for respondWith(stream) (Closed)
Patch Set: Used TEST_P to test closing the connection first and On{Aborted,Completed} first Created 3 years, 8 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_messages.h
diff --git a/content/common/service_worker/service_worker_messages.h b/content/common/service_worker/service_worker_messages.h
index 9c75a89adc69a100d04743a1cef46d63db260c93..9242ecab73e23f3aa416009dd15d1415275b8e76 100644
--- a/content/common/service_worker/service_worker_messages.h
+++ b/content/common/service_worker/service_worker_messages.h
@@ -92,7 +92,6 @@ IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerResponse)
IPC_STRUCT_TRAITS_MEMBER(headers)
IPC_STRUCT_TRAITS_MEMBER(blob_uuid)
IPC_STRUCT_TRAITS_MEMBER(blob_size)
- IPC_STRUCT_TRAITS_MEMBER(stream_url)
IPC_STRUCT_TRAITS_MEMBER(error)
IPC_STRUCT_TRAITS_MEMBER(response_time)
IPC_STRUCT_TRAITS_MEMBER(is_in_cache_storage)
@@ -245,9 +244,10 @@ IPC_MESSAGE_ROUTED4(ServiceWorkerHostMsg_InstallEventFinished,
bool /* has_fetch_event_handler */,
base::Time /* dispatch_event_time */)
-IPC_MESSAGE_ROUTED4(ServiceWorkerHostMsg_FetchEventResponse,
+// Returns the response as the result of fetch event. This is used only for blob
+// to keep the IPC ordering. For stream, no body and fallback, mojo IPC is used.
+IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_FetchEventResponse,
int /* fetch_event_id */,
- content::ServiceWorkerFetchEventResult,
content::ServiceWorkerResponse,
base::Time /* dispatch_event_time */)

Powered by Google App Engine
This is Rietveld 408576698