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

Unified Diff: content/browser/shared_worker/shared_worker_instance.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/browser/shared_worker/shared_worker_instance.h
diff --git a/content/browser/shared_worker/shared_worker_instance.h b/content/browser/shared_worker/shared_worker_instance.h
index 9c2359dff3abd8068aa2d8d3ae6d62b21426e40b..c544807c41a499ed21f8c98075e4c095931d4938 100644
--- a/content/browser/shared_worker/shared_worker_instance.h
+++ b/content/browser/shared_worker/shared_worker_instance.h
@@ -11,6 +11,7 @@
#include "content/common/content_export.h"
#include "third_party/WebKit/public/platform/WebAddressSpace.h"
#include "third_party/WebKit/public/platform/WebContentSecurityPolicy.h"
+#include "third_party/WebKit/public/web/WebDataSaverFlag.h"
#include "third_party/WebKit/public/web/WebSharedWorkerCreationContextType.h"
#include "url/gurl.h"
@@ -29,7 +30,8 @@ class CONTENT_EXPORT SharedWorkerInstance {
blink::WebAddressSpace creation_address_space,
ResourceContext* resource_context,
const WorkerStoragePartitionId& partition_id,
- blink::WebSharedWorkerCreationContextType creation_context_type);
+ blink::WebSharedWorkerCreationContextType creation_context_type,
+ blink::WebDataSaverFlag data_saver_flag);
SharedWorkerInstance(const SharedWorkerInstance& other);
~SharedWorkerInstance();
@@ -64,6 +66,7 @@ class CONTENT_EXPORT SharedWorkerInstance {
blink::WebSharedWorkerCreationContextType creation_context_type() const {
return creation_context_type_;
}
+ blink::WebDataSaverFlag data_saver_flag() const { return data_saver_flag_; }
private:
const GURL url_;
@@ -74,6 +77,7 @@ class CONTENT_EXPORT SharedWorkerInstance {
ResourceContext* const resource_context_;
const WorkerStoragePartitionId partition_id_;
const blink::WebSharedWorkerCreationContextType creation_context_type_;
+ const blink::WebDataSaverFlag data_saver_flag_;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698