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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.h

Issue 1966743004: Move tracking of ActiveScriptWrappables to V8PerIsolateData. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lazy creation of map Created 4 years, 7 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 | « no previous file | third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.h b/third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.h
index 74ffa730af6e31d1f74e49a0e899ed9c7b577149..e8aa14eb7bfbc421616e0f1180fe69074075d76e 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.h
@@ -9,6 +9,10 @@
#include "platform/heap/Handle.h"
#include "wtf/Noncopyable.h"
+namespace v8 {
+class Isolate;
+}
+
namespace blink {
class ScriptWrappable;
@@ -24,11 +28,11 @@ class CORE_EXPORT ActiveScriptWrappable : public GarbageCollectedMixin {
public:
explicit ActiveScriptWrappable(ScriptWrappable*);
- static void traceActiveScriptWrappables(ScriptWrappableVisitor*);
+ static void traceActiveScriptWrappables(v8::Isolate*, ScriptWrappableVisitor*);
virtual bool hasPendingActivity() const = 0;
- ScriptWrappable* toScriptWrappable() const;
+ ScriptWrappable* toScriptWrappable() const { return m_scriptWrappable; }
private:
ScriptWrappable* m_scriptWrappable;
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698