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

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

Issue 474683003: Not for review - Rebase of crrev.com/62833003 Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 6 years, 2 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/workers/UIWorkerThread.cpp ('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 42392a11ec021877279200768a957f06f511f61a..f24895b84a8fdbd73d53795dcd3300fb6bf13f4c 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&);
@@ -65,9 +65,15 @@ public:
virtual void trace(Visitor*) override;
-private:
+ virtual bool isUIWorker() const { return false; }
+
+protected:
explicit Worker(ExecutionContext*);
+ void initScriptLoader(ExecutionContext*, const KURL& scriptURL);
+ void setContextProxy(WorkerGlobalScopeProxy*);
+
+private:
// WorkerScriptLoaderClient callbacks
virtual void didReceiveResponse(unsigned long identifier, const ResourceResponse&) override;
virtual void notifyFinished() override;
« no previous file with comments | « Source/core/workers/UIWorkerThread.cpp ('k') | Source/core/workers/Worker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698