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

Unified Diff: Source/core/workers/Worker.h

Issue 1018863002: compositor-worker: Introduce CompositorWorker. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 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 | « Source/core/dom/ExecutionContext.h ('k') | Source/core/workers/Worker.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/Worker.h
diff --git a/Source/core/workers/Worker.h b/Source/core/workers/Worker.h
index aae5dec44df02b1e54bacf5a5c9c77de4a53df7d..eadc56981912eddafef2ebe9bcce6d4bec4c08fb 100644
--- a/Source/core/workers/Worker.h
+++ b/Source/core/workers/Worker.h
@@ -46,7 +46,7 @@ class ExecutionContext;
class WorkerGlobalScopeProxy;
class WorkerScriptLoader;
-class Worker final : public AbstractWorker, private WorkerScriptLoaderClient {
+class Worker : public AbstractWorker, private WorkerScriptLoaderClient {
DEFINE_WRAPPERTYPEINFO();
public:
static PassRefPtrWillBeRawPtr<Worker> create(ExecutionContext*, const String& url, ExceptionState&);
@@ -56,6 +56,7 @@ public:
void postMessage(ExecutionContext*, PassRefPtr<SerializedScriptValue> message, const MessagePortArray*, ExceptionState&);
+ bool initialize(ExecutionContext*, const String&, ExceptionState&);
void terminate();
virtual void stop() override;
@@ -65,9 +66,12 @@ public:
DECLARE_VIRTUAL_TRACE();
-private:
+protected:
explicit Worker(ExecutionContext*);
+ virtual WorkerGlobalScopeProxy* createWorkerGlobalScopeProxy(ExecutionContext*);
+
+private:
// WorkerScriptLoaderClient callbacks
virtual void didReceiveResponse(unsigned long identifier, const ResourceResponse&) override;
virtual void notifyFinished() override;
« no previous file with comments | « Source/core/dom/ExecutionContext.h ('k') | Source/core/workers/Worker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698