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

Unified Diff: Source/web/WebEmbeddedWorkerImpl.h

Issue 194073002: Identify service worker version at main resource load time (BlinkSide) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | Source/web/WebEmbeddedWorkerImpl.cpp » ('j') | Source/web/WebEmbeddedWorkerImpl.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebEmbeddedWorkerImpl.h
diff --git a/Source/web/WebEmbeddedWorkerImpl.h b/Source/web/WebEmbeddedWorkerImpl.h
index 8d687929830d5f1d4e260d17619ec4c2f5f9ca99..71c66620cf8c81601596c9e2e93989293e5c9e70 100644
--- a/Source/web/WebEmbeddedWorkerImpl.h
+++ b/Source/web/WebEmbeddedWorkerImpl.h
@@ -44,6 +44,7 @@ class WorkerThread;
namespace blink {
class ServiceWorkerGlobalScopeProxy;
+class WebServiceWorkerNetworkProvider;
class WebView;
class WebEmbeddedWorkerImpl FINAL :
@@ -67,6 +68,9 @@ private:
void prepareShadowPageForLoader();
// WebFrameClient overrides.
+ virtual void willSendRequest(
+ WebFrame*, unsigned identifier, WebURLRequest&,
+ const WebURLResponse& redirectResponse) OVERRIDE;
virtual void didFinishDocumentLoad(WebFrame*) OVERRIDE;
void onScriptLoaderFinished();
@@ -78,6 +82,10 @@ private:
OwnPtr<WebServiceWorkerContextClient> m_workerContextClient;
OwnPtr<WebWorkerPermissionClientProxy> m_permissionClient;
+ // We retain ownership of this one which is for use on the
+ // main thread only.
+ OwnPtr<WebServiceWorkerNetworkProvider> m_networkProvider;
+
// Kept around only while main script loading is ongoing.
OwnPtr<Loader> m_mainScriptLoader;
« no previous file with comments | « no previous file | Source/web/WebEmbeddedWorkerImpl.cpp » ('j') | Source/web/WebEmbeddedWorkerImpl.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698