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

Unified Diff: Source/core/dom/ExecutionContext.h

Issue 319333002: Revert of Oilpan: Prepare to make ExecutionContext GarbageCollectedMixin. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/MainThreadTaskRunnerTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ExecutionContext.h
diff --git a/Source/core/dom/ExecutionContext.h b/Source/core/dom/ExecutionContext.h
index eb165efd7f87d1e6ec2687816f9eca4c9ebc7920..c93492dbf87c6e9b36290cb54605142c50bac78e 100644
--- a/Source/core/dom/ExecutionContext.h
+++ b/Source/core/dom/ExecutionContext.h
@@ -38,7 +38,6 @@
#include "core/frame/DOMTimer.h"
#include "platform/LifecycleContext.h"
#include "platform/Supplementable.h"
-#include "platform/heap/Handle.h"
#include "platform/weborigin/KURL.h"
#include "wtf/Functional.h"
#include "wtf/OwnPtr.h"
@@ -61,10 +60,7 @@
class SecurityOrigin;
class ScriptCallStack;
-class ExecutionContext
- : public WillBeGarbageCollectedMixin
- , public LifecycleContext<ExecutionContext>
- , public Supplementable<ExecutionContext> {
+class ExecutionContext : public LifecycleContext<ExecutionContext>, public Supplementable<ExecutionContext> {
public:
ExecutionContext();
virtual ~ExecutionContext();
@@ -111,10 +107,9 @@
// Called after the construction of an ActiveDOMObject to synchronize suspend state.
void suspendActiveDOMObjectIfNeeded(ActiveDOMObject*);
-#if !ENABLE(OILPAN)
+
void ref() { refExecutionContext(); }
void deref() { derefExecutionContext(); }
-#endif
// Gets the next id in a circular sequence from 1 to 2^31-1.
int circularSequentialID();
@@ -138,10 +133,8 @@
bool dispatchErrorEvent(PassRefPtrWillBeRawPtr<ErrorEvent>, AccessControlStatus);
-#if !ENABLE(OILPAN)
virtual void refExecutionContext() = 0;
virtual void derefExecutionContext() = 0;
-#endif
// LifecycleContext implementation.
// Implementation details for DOMTimer. No other classes should call these functions.
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/MainThreadTaskRunnerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698