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

Unified Diff: content/common/view_messages.h

Issue 2881073003: Support DataSaver for SharedWorker (Closed)
Patch Set: fix #include "public/web/WebDataSaverFlag.h" 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/view_messages.h
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index cf32fe699180940210edd4e2b48791edd3e54a6f..d6284c51ba25f06b24da17964d2d10356b4be2b2 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -47,6 +47,7 @@
#include "third_party/WebKit/public/platform/WebFloatPoint.h"
#include "third_party/WebKit/public/platform/WebFloatRect.h"
#include "third_party/WebKit/public/platform/modules/screen_orientation/WebScreenOrientationType.h"
+#include "third_party/WebKit/public/web/WebDataSaverFlag.h"
#include "third_party/WebKit/public/web/WebDeviceEmulationParams.h"
#include "third_party/WebKit/public/web/WebMediaPlayerAction.h"
#include "third_party/WebKit/public/web/WebPluginAction.h"
@@ -314,6 +315,9 @@ IPC_STRUCT_BEGIN(ViewHostMsg_CreateWorker_Params)
// The type (secure or nonsecure) of the context that created the worker.
IPC_STRUCT_MEMBER(blink::WebSharedWorkerCreationContextType,
creation_context_type)
+
+ // Whether Data-Saver is enabled or not.
+ IPC_STRUCT_MEMBER(blink::WebDataSaverFlag, data_saver_flag)
IPC_STRUCT_END()
IPC_STRUCT_BEGIN(ViewHostMsg_CreateWorker_Reply)

Powered by Google App Engine
This is Rietveld 408576698