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

Unified Diff: content/renderer/shared_worker/shared_worker_repository.cc

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/renderer/shared_worker/shared_worker_repository.cc
diff --git a/content/renderer/shared_worker/shared_worker_repository.cc b/content/renderer/shared_worker/shared_worker_repository.cc
index 8f31394dae6ba4953279f0593f1581cf240a7034..b5ebf986d84841b5a15280f401945588341705ed 100644
--- a/content/renderer/shared_worker/shared_worker_repository.cc
+++ b/content/renderer/shared_worker/shared_worker_repository.cc
@@ -24,6 +24,7 @@ void SharedWorkerRepository::Connect(
blink::WebContentSecurityPolicyType security_policy_type,
blink::WebAddressSpace creation_address_space,
blink::WebSharedWorkerCreationContextType creation_context_type,
+ bool data_saver_enabled,
std::unique_ptr<blink::WebMessagePortChannel> channel,
std::unique_ptr<blink::WebSharedWorkerConnectListener> listener) {
documents_with_workers_.insert(document_id);
@@ -37,6 +38,7 @@ void SharedWorkerRepository::Connect(
params.render_frame_route_id = render_frame_->GetRoutingID();
params.creation_address_space = creation_address_space;
params.creation_context_type = creation_context_type;
+ params.data_saver_enabled = data_saver_enabled;
ViewHostMsg_CreateWorker_Reply reply;
// This proxy will self-destruct when a worker is destroyed.

Powered by Google App Engine
This is Rietveld 408576698