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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerThread.h

Issue 2066403003: Revert of Remove WorkerBackingThread::scriptCount (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/core/workers/WorkerThread.h
diff --git a/third_party/WebKit/Source/core/workers/WorkerThread.h b/third_party/WebKit/Source/core/workers/WorkerThread.h
index aea4cb257214bcc22b1d270c49493e888ff5d068..3a1de279867b357456c7c840563a261077303a49 100644
--- a/third_party/WebKit/Source/core/workers/WorkerThread.h
+++ b/third_party/WebKit/Source/core/workers/WorkerThread.h
@@ -34,7 +34,6 @@
#include "core/workers/WorkerLoaderProxy.h"
#include "core/workers/WorkerThreadLifecycleObserver.h"
#include "platform/LifecycleNotifier.h"
-#include "platform/WaitableEvent.h"
#include "wtf/Forward.h"
#include "wtf/Functional.h"
#include "wtf/OwnPtr.h"
@@ -44,6 +43,7 @@
namespace blink {
class InspectorTaskRunner;
+class WaitableEvent;
class WorkerBackingThread;
class WorkerGlobalScope;
class WorkerInspectorController;
@@ -152,21 +152,12 @@
ExitCode getExitCode();
- void waitForShutdownForTesting() { m_shutdownEvent->wait(); }
-
protected:
WorkerThread(PassRefPtr<WorkerLoaderProxy>, WorkerReportingProxy&);
// Factory method for creating a new worker context for the thread.
// Called on the worker thread.
virtual WorkerGlobalScope* createWorkerGlobalScope(PassOwnPtr<WorkerThreadStartupData>) = 0;
-
- // Returns true when this WorkerThread owns the associated
- // WorkerBackingThread exclusively. If this function returns true, the
- // WorkerThread initializes / shutdowns the backing thread. Otherwise
- // workerBackingThread() should be initialized / shutdown properly
- // out of this class.
- virtual bool isOwningBackingThread() const { return true; }
// Called on the worker thread.
virtual void postInitialize() { }

Powered by Google App Engine
This is Rietveld 408576698