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

Unified Diff: content/browser/shared_worker/shared_worker_service_impl.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/browser/shared_worker/shared_worker_service_impl.cc
diff --git a/content/browser/shared_worker/shared_worker_service_impl.cc b/content/browser/shared_worker/shared_worker_service_impl.cc
index aa035f089f687ae1a5e4e67bfdbe42c025b392b6..79106a12165edeb71b6318b75c83e7fe5224b9a7 100644
--- a/content/browser/shared_worker/shared_worker_service_impl.cc
+++ b/content/browser/shared_worker/shared_worker_service_impl.cc
@@ -23,6 +23,7 @@
#include "content/common/worker_messages.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/worker_service_observer.h"
+#include "third_party/WebKit/public/web/WebDataSaverFlag.h"
namespace content {
@@ -335,7 +336,8 @@ blink::WebWorkerCreationError SharedWorkerServiceImpl::CreateWorker(
std::unique_ptr<SharedWorkerInstance> instance(new SharedWorkerInstance(
params.url, params.name, params.content_security_policy,
params.security_policy_type, params.creation_address_space,
- resource_context, partition_id, params.creation_context_type));
+ resource_context, partition_id, params.creation_context_type,
+ params.data_saver_flag));
std::unique_ptr<SharedWorkerPendingInstance::SharedWorkerPendingRequest>
request(new SharedWorkerPendingInstance::SharedWorkerPendingRequest(
filter, route_id, params.document_id, filter->render_process_id(),

Powered by Google App Engine
This is Rietveld 408576698