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

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

Issue 1805843002: [v8 gc] Introduce a base class for all objects that can have pending activity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 4 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
Index: third_party/WebKit/Source/core/workers/InProcessWorkerBase.h
diff --git a/third_party/WebKit/Source/core/workers/InProcessWorkerBase.h b/third_party/WebKit/Source/core/workers/InProcessWorkerBase.h
index 94818b629aa51aba4d8e692c3a822515c070ae09..86c44b10b742e5a4608314a4c3b610b81d149888 100644
--- a/third_party/WebKit/Source/core/workers/InProcessWorkerBase.h
+++ b/third_party/WebKit/Source/core/workers/InProcessWorkerBase.h
@@ -5,6 +5,7 @@
#ifndef InProcessWorkerBase_h
#define InProcessWorkerBase_h
+#include "bindings/core/v8/ActiveScriptWrappable.h"
#include "core/CoreExport.h"
#include "core/dom/ActiveDOMObject.h"
#include "core/dom/MessagePort.h"
@@ -26,7 +27,7 @@ class WorkerScriptLoader;
// Base class for workers that operate in the same process as the document that
// creates them.
-class CORE_EXPORT InProcessWorkerBase : public AbstractWorker {
+class CORE_EXPORT InProcessWorkerBase : public AbstractWorker, public ActiveScriptWrappable {
public:
~InProcessWorkerBase() override;
@@ -35,7 +36,9 @@ public:
// ActiveDOMObject
void stop() override;
- bool hasPendingActivity() const override;
+
+ // ActiveScriptWrappable
+ bool hasPendingActivity() const final;
ContentSecurityPolicy* contentSecurityPolicy();

Powered by Google App Engine
This is Rietveld 408576698