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

Unified Diff: third_party/WebKit/Source/web/WebSharedWorkerImpl.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: third_party/WebKit/Source/web/WebSharedWorkerImpl.h
diff --git a/third_party/WebKit/Source/web/WebSharedWorkerImpl.h b/third_party/WebKit/Source/web/WebSharedWorkerImpl.h
index f6adcf7191bb4e12e997eeffd7efecf1fde7435b..c9457e929031b3ca48d5ef32cbf72b01a19d9b95 100644
--- a/third_party/WebKit/Source/web/WebSharedWorkerImpl.h
+++ b/third_party/WebKit/Source/web/WebSharedWorkerImpl.h
@@ -89,7 +89,8 @@ class WebSharedWorkerImpl final : public WebFrameClient,
const WebString& name,
const WebString& content_security_policy,
WebContentSecurityPolicyType,
- WebAddressSpace) override;
+ WebAddressSpace,
+ bool data_saver_enabled) override;
void Connect(std::unique_ptr<WebMessagePortChannel>) override;
void TerminateWorkerContext() override;
@@ -119,7 +120,7 @@ class WebSharedWorkerImpl final : public WebFrameClient,
void TerminateWorkerThread();
// Creates the shadow loader used for worker network requests.
- void InitializeLoader();
+ void InitializeLoader(bool data_saver_enabled);
void LoadShadowPage();
void DidReceiveScriptLoaderResponse();

Powered by Google App Engine
This is Rietveld 408576698