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

Unified Diff: third_party/WebKit/public/web/WebEmbeddedWorkerStartData.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: third_party/WebKit/public/web/WebEmbeddedWorkerStartData.h
diff --git a/third_party/WebKit/public/web/WebEmbeddedWorkerStartData.h b/third_party/WebKit/public/web/WebEmbeddedWorkerStartData.h
index 8d267f827e5fde97e26ac925076f7ef64b15c613..21ec90cfac3f14a90ebe29ebda8c3d514e5b001e 100644
--- a/third_party/WebKit/public/web/WebEmbeddedWorkerStartData.h
+++ b/third_party/WebKit/public/web/WebEmbeddedWorkerStartData.h
@@ -35,6 +35,7 @@
#include "public/platform/WebContentSecurityPolicy.h"
#include "public/platform/WebString.h"
#include "public/platform/WebURL.h"
+#include "public/web/WebDataSaverFlag.h"
#include "public/web/WebSettings.h"
namespace blink {
@@ -51,7 +52,7 @@ struct WebEmbeddedWorkerStartData {
PauseAfterDownloadMode pause_after_download_mode;
WaitForDebuggerMode wait_for_debugger_mode;
WebSettings::V8CacheOptions v8_cache_options;
- bool data_saver_enabled;
+ WebDataSaverFlag data_saver_flag;
WebAddressSpace address_space;
@@ -59,7 +60,7 @@ struct WebEmbeddedWorkerStartData {
: pause_after_download_mode(kDontPauseAfterDownload),
wait_for_debugger_mode(kDontWaitForDebugger),
v8_cache_options(WebSettings::kV8CacheOptionsDefault),
- data_saver_enabled(false) {}
+ data_saver_flag(WebDataSaverFlag::kDisabled) {}
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698