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

Unified Diff: content/renderer/service_worker/service_worker_fetch_context_impl.cc

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/renderer/service_worker/service_worker_fetch_context_impl.cc
diff --git a/content/renderer/service_worker/service_worker_fetch_context_impl.cc b/content/renderer/service_worker/service_worker_fetch_context_impl.cc
index 9de7876345657359953366de74363e39a6c755f3..e22f1a8917b07aaebb112e8a17b78800c53885e8 100644
--- a/content/renderer/service_worker/service_worker_fetch_context_impl.cc
+++ b/content/renderer/service_worker/service_worker_fetch_context_impl.cc
@@ -46,12 +46,13 @@ bool ServiceWorkerFetchContextImpl::IsControlledByServiceWorker() const {
return false;
}
-void ServiceWorkerFetchContextImpl::SetDataSaverEnabled(bool enabled) {
- is_data_saver_enabled_ = enabled;
+void ServiceWorkerFetchContextImpl::SetDataSaverFlag(
+ blink::WebDataSaverFlag flag) {
+ data_saver_flag_ = flag;
}
-bool ServiceWorkerFetchContextImpl::IsDataSaverEnabled() const {
- return is_data_saver_enabled_;
+blink::WebDataSaverFlag ServiceWorkerFetchContextImpl::DataSaverFlag() const {
+ return data_saver_flag_;
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698