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

Unified Diff: third_party/WebKit/public/platform/WebWorkerFetchContext.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/platform/WebWorkerFetchContext.h
diff --git a/third_party/WebKit/public/platform/WebWorkerFetchContext.h b/third_party/WebKit/public/platform/WebWorkerFetchContext.h
index cbe3ac73b4ec8b63744e246587d71d2a8753b7b4..e11e33ac6aba06f3b8039db85c1a87800b4a03fe 100644
--- a/third_party/WebKit/public/platform/WebWorkerFetchContext.h
+++ b/third_party/WebKit/public/platform/WebWorkerFetchContext.h
@@ -5,6 +5,8 @@
#ifndef WebWorkerFetchContext_h
#define WebWorkerFetchContext_h
+#include "third_party/WebKit/public/web/WebDataSaverFlag.h"
+
namespace base {
class SingleThreadTaskRunner;
} // namespace base
@@ -38,8 +40,8 @@ class WebWorkerFetchContext {
virtual bool IsControlledByServiceWorker() const = 0;
// The flag for Data Saver.
- virtual void SetDataSaverEnabled(bool) = 0;
- virtual bool IsDataSaverEnabled() const = 0;
+ virtual void SetDataSaverFlag(blink::WebDataSaverFlag) = 0;
+ virtual blink::WebDataSaverFlag DataSaverFlag() const = 0;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698