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

Unified Diff: content/renderer/service_worker/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/worker_fetch_context_impl.cc
diff --git a/content/renderer/service_worker/worker_fetch_context_impl.cc b/content/renderer/service_worker/worker_fetch_context_impl.cc
index 51a9730df6b69928e7870f8d21803a025179f532..2d345c557a30684e42ad4e7b3fd4f2ddb5e1ac5c 100644
--- a/content/renderer/service_worker/worker_fetch_context_impl.cc
+++ b/content/renderer/service_worker/worker_fetch_context_impl.cc
@@ -58,12 +58,12 @@ bool WorkerFetchContextImpl::IsControlledByServiceWorker() const {
(controller_version_id_ != kInvalidServiceWorkerVersionId);
}
-void WorkerFetchContextImpl::SetDataSaverEnabled(bool enabled) {
- is_data_saver_enabled_ = enabled;
+void WorkerFetchContextImpl::SetDataSaverFlag(blink::WebDataSaverFlag flag) {
+ data_saver_flag_ = flag;
}
-bool WorkerFetchContextImpl::IsDataSaverEnabled() const {
- return is_data_saver_enabled_;
+blink::WebDataSaverFlag WorkerFetchContextImpl::DataSaverFlag() const {
+ return data_saver_flag_;
}
void WorkerFetchContextImpl::set_service_worker_provider_id(int id) {

Powered by Google App Engine
This is Rietveld 408576698