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

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

Issue 2583093002: Reduce SuspendableObjects (Closed)
Patch Set: Created 4 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: third_party/WebKit/Source/core/workers/AbstractWorker.h
diff --git a/third_party/WebKit/Source/core/workers/AbstractWorker.h b/third_party/WebKit/Source/core/workers/AbstractWorker.h
index 7cc39be49649074e6c1c9db3e439bcee104dae5d..13a8cd76b8d6d3665467316da074fd37d0d58c6a 100644
--- a/third_party/WebKit/Source/core/workers/AbstractWorker.h
+++ b/third_party/WebKit/Source/core/workers/AbstractWorker.h
@@ -32,7 +32,7 @@
#define AbstractWorker_h
#include "core/CoreExport.h"
-#include "core/dom/SuspendableObject.h"
+#include "core/dom/ContextLifecycleObserver.h"
#include "core/events/EventListener.h"
#include "core/events/EventTarget.h"
#include "platform/heap/Handle.h"
@@ -45,13 +45,13 @@ class KURL;
class ExecutionContext;
class CORE_EXPORT AbstractWorker : public EventTargetWithInlineData,
- public SuspendableObject {
+ public ContextLifecycleObserver {
USING_GARBAGE_COLLECTED_MIXIN(AbstractWorker);
public:
// EventTarget APIs
ExecutionContext* getExecutionContext() const final {
- return SuspendableObject::getExecutionContext();
+ return ContextLifecycleObserver::getExecutionContext();
}
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(error);

Powered by Google App Engine
This is Rietveld 408576698