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

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

Issue 178343011: Support dispatching ServiceWorker FetchEvent and receiving response (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more review comments Created 6 years, 10 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 0081d9788b511817add5ab25dce51be28d593be2..cca6899ecc53c7d7c4cb86b6c2db1b1cc61187eb 100644
--- a/content/common/service_worker/service_worker_messages.h
+++ b/content/common/service_worker/service_worker_messages.h
@@ -26,7 +26,9 @@ IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest)
IPC_STRUCT_TRAITS_MEMBER(headers)
IPC_STRUCT_TRAITS_END()
-IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchResponse)
+IPC_ENUM_TRAITS(content::ServiceWorkerFetchEventResult)
Tom Sepez 2014/03/05 19:45:02 use IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWork
falken 2014/03/06 15:58:54 Done.
+
+IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerResponse)
IPC_STRUCT_TRAITS_MEMBER(status_code)
IPC_STRUCT_TRAITS_MEMBER(status_text)
IPC_STRUCT_TRAITS_MEMBER(method)
@@ -90,6 +92,7 @@ IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed,
// to the documents).
IPC_MESSAGE_CONTROL0(ServiceWorkerHostMsg_InstallEventFinished)
- // Informs the browser that fetch event handling has finished.
-IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_FetchEventFinished,
- content::ServiceWorkerFetchResponse)
+// Informs the browser that fetch event handling has finished.
+IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_FetchEventFinished,
+ content::ServiceWorkerFetchEventResult,
+ content::ServiceWorkerResponse)

Powered by Google App Engine
This is Rietveld 408576698