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

Unified Diff: third_party/WebKit/Source/web/WebSharedWorkerImpl.h

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: 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..83e4e30ad4db61e2f105d6add0d9de66f5d8beba 100644
--- a/third_party/WebKit/Source/web/WebSharedWorkerImpl.h
+++ b/third_party/WebKit/Source/web/WebSharedWorkerImpl.h
@@ -40,6 +40,7 @@
#include "platform/wtf/RefPtr.h"
#include "public/platform/WebAddressSpace.h"
#include "public/platform/WebContentSecurityPolicy.h"
+#include "public/web/WebDataSaverFlag.h"
#include "public/web/WebDevToolsAgentClient.h"
#include "public/web/WebFrameClient.h"
#include "public/web/WebSharedWorkerClient.h"
@@ -89,7 +90,8 @@ class WebSharedWorkerImpl final : public WebFrameClient,
const WebString& name,
const WebString& content_security_policy,
WebContentSecurityPolicyType,
- WebAddressSpace) override;
+ WebAddressSpace,
+ WebDataSaverFlag) override;
void Connect(std::unique_ptr<WebMessagePortChannel>) override;
void TerminateWorkerContext() override;
@@ -119,7 +121,7 @@ class WebSharedWorkerImpl final : public WebFrameClient,
void TerminateWorkerThread();
// Creates the shadow loader used for worker network requests.
- void InitializeLoader();
+ void InitializeLoader(WebDataSaverFlag);
void LoadShadowPage();
void DidReceiveScriptLoaderResponse();

Powered by Google App Engine
This is Rietveld 408576698