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

Unified Diff: Source/web/WebEmbeddedWorkerImpl.h

Issue 91173002: Actually start ServiceWorkerThread in EmbeddedWorker (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: updated comments Created 7 years 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: Source/web/WebEmbeddedWorkerImpl.h
diff --git a/Source/web/WebEmbeddedWorkerImpl.h b/Source/web/WebEmbeddedWorkerImpl.h
index 94dabc0ee9a29ade3ec28765731e815b1c25b174..038cd81865003bf19a5ab35a6a356df8401d039c 100644
--- a/Source/web/WebEmbeddedWorkerImpl.h
+++ b/Source/web/WebEmbeddedWorkerImpl.h
@@ -35,21 +35,21 @@
#include "WebEmbeddedWorker.h"
#include "WebEmbeddedWorkerStartData.h"
#include "WebFrameClient.h"
-#include "core/frame/ContentSecurityPolicyResponseHeaders.h"
namespace WebCore {
-class ContentSecurityPolicyResponseHeaders;
class WorkerScriptLoader;
class WorkerThread;
}
namespace blink {
+class ServiceWorkerGlobalScopeProxy;
class WebView;
class WebEmbeddedWorkerImpl :
public WebEmbeddedWorker,
public WebFrameClient {
+ WTF_MAKE_NONCOPYABLE(WebEmbeddedWorkerImpl);
public:
WebEmbeddedWorkerImpl(
PassOwnPtr<WebServiceWorkerContextClient>,
@@ -62,6 +62,7 @@ public:
private:
class Loader;
+ class LoaderProxy;
void prepareShadowPageForLoader();
void onScriptLoaderFinished();
@@ -80,6 +81,8 @@ private:
OwnPtr<Loader> m_mainScriptLoader;
RefPtr<WebCore::WorkerThread> m_workerThread;
+ OwnPtr<LoaderProxy> m_loaderProxy;
+ OwnPtr<ServiceWorkerGlobalScopeProxy> m_workerGlobalScopeProxy;
// 'shadow page' - created to proxy loading requests from the worker.
// Both WebView and WebFrame objects are close()'ed (where they're

Powered by Google App Engine
This is Rietveld 408576698