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

Unified Diff: content/renderer/service_worker/service_worker_fetch_context_impl.h

Issue 2807533003: [WIP2] off-main-thread loading
Patch Set: call set_is_secure_context in EmbeddedSharedWorkerStub::CreateWorkerFetchContext() Created 3 years, 8 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/service_worker/service_worker_fetch_context_impl.h
diff --git a/content/renderer/service_worker/service_worker_fetch_context_impl.h b/content/renderer/service_worker/service_worker_fetch_context_impl.h
index 71f6ef474025d750ddff218dfcaec83fb13cf23f..e656ada289575a2c5e189b27d878c8380c6a22ce 100644
--- a/content/renderer/service_worker/service_worker_fetch_context_impl.h
+++ b/content/renderer/service_worker/service_worker_fetch_context_impl.h
@@ -27,10 +27,12 @@ class ServiceWorkerFetchContextImpl : public blink::WebWorkerFetchContext {
std::unique_ptr<blink::WebURLLoader> CreateURLLoader() override;
void WillSendRequest(blink::WebURLRequest&) override;
bool IsControlledByServiceWorker() const override;
+ void SetDataSaverEnabled(bool flag) override;
private:
mojom::WorkerURLLoaderFactoryProviderPtrInfo provider_info_;
const int service_worker_provider_id_;
+ bool data_saver_enabled_ = false;
// Initialized on the worker thread when InitializeOnWorkerThread() is called.
std::unique_ptr<ResourceDispatcher> resource_dispatcher_;
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/service_worker/service_worker_fetch_context_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698