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

Unified Diff: content/renderer/shared_worker/shared_worker_repository.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/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..141b1e6e6335892a35ac9835defaf7b2197c98b5 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,
+ blink::WebDataSaverFlag data_saver_flag,
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_flag = data_saver_flag;
ViewHostMsg_CreateWorker_Reply reply;
// This proxy will self-destruct when a worker is destroyed.

Powered by Google App Engine
This is Rietveld 408576698