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

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

Issue 1708583003: Pass data saver pref value into embedded worker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nits Created 4 years, 9 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/embedded_worker_messages.h
diff --git a/content/common/service_worker/embedded_worker_messages.h b/content/common/service_worker/embedded_worker_messages.h
index 1cad10412667f15298fd8b8142f421a7a0bc3523..f065babad9625130bd60abcf65be6a8014bf9f37 100644
--- a/content/common/service_worker/embedded_worker_messages.h
+++ b/content/common/service_worker/embedded_worker_messages.h
@@ -8,6 +8,7 @@
#include <string>
+#include "content/common/service_worker/embedded_worker_settings.h"
#include "content/public/common/web_preferences.h"
#include "ipc/ipc_message.h"
#include "ipc/ipc_message_macros.h"
@@ -19,6 +20,11 @@
#define IPC_MESSAGE_START EmbeddedWorkerMsgStart
+IPC_STRUCT_TRAITS_BEGIN(content::EmbeddedWorkerSettings)
+ IPC_STRUCT_TRAITS_MEMBER(v8_cache_options)
+ IPC_STRUCT_TRAITS_MEMBER(data_saver_enabled)
+IPC_STRUCT_TRAITS_END()
+
// Parameters structure for EmbeddedWorkerMsg_StartWorker.
IPC_STRUCT_BEGIN(EmbeddedWorkerMsg_StartWorker_Params)
IPC_STRUCT_MEMBER(int, embedded_worker_id)
@@ -28,7 +34,7 @@ IPC_STRUCT_BEGIN(EmbeddedWorkerMsg_StartWorker_Params)
IPC_STRUCT_MEMBER(int, worker_devtools_agent_route_id)
IPC_STRUCT_MEMBER(bool, pause_after_download)
IPC_STRUCT_MEMBER(bool, wait_for_debugger)
- IPC_STRUCT_MEMBER(content::V8CacheOptions, v8_cache_options)
+ IPC_STRUCT_MEMBER(content::EmbeddedWorkerSettings, settings)
IPC_STRUCT_END()
// Parameters structure for EmbeddedWorkerHostMsg_ReportConsoleMessage.

Powered by Google App Engine
This is Rietveld 408576698