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

Unified Diff: content/browser/shared_worker/shared_worker_instance.h

Issue 2881073003: Support DataSaver for SharedWorker (Closed)
Patch Set: same as PS6 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..4e54c67cb62a13d894273304257128f542670f38 100644
--- a/content/browser/shared_worker/shared_worker_instance.h
+++ b/content/browser/shared_worker/shared_worker_instance.h
@@ -29,7 +29,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,
+ bool data_saver_enabled);
SharedWorkerInstance(const SharedWorkerInstance& other);
~SharedWorkerInstance();
@@ -64,6 +65,7 @@ class CONTENT_EXPORT SharedWorkerInstance {
blink::WebSharedWorkerCreationContextType creation_context_type() const {
return creation_context_type_;
}
+ bool data_saver_enabled() const { return data_saver_enabled_; }
private:
const GURL url_;
@@ -74,6 +76,7 @@ class CONTENT_EXPORT SharedWorkerInstance {
ResourceContext* const resource_context_;
const WorkerStoragePartitionId partition_id_;
const blink::WebSharedWorkerCreationContextType creation_context_type_;
+ const bool data_saver_enabled_;
};
} // namespace content
« no previous file with comments | « content/browser/shared_worker/shared_worker_host.cc ('k') | content/browser/shared_worker/shared_worker_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698