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

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

Issue 2033583007: Store ScriptWrappableVisitor in V8PerIsolateData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use unique_ptr instead 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/bindings/core/v8/V8PerIsolateData.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h b/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h
index cfd52efeca87f58110ecafe31763fbd8930c561a..b96dc9e35e64b4540d174d970b71d973effe615c 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h
+++ b/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h
@@ -28,6 +28,7 @@
#include "bindings/core/v8/ScopedPersistent.h"
#include "bindings/core/v8/ScriptState.h"
+#include "bindings/core/v8/ScriptWrappableVisitor.h"
#include "bindings/core/v8/V8HiddenValue.h"
#include "bindings/core/v8/WrapperTypeInfo.h"
#include "core/CoreExport.h"
@@ -146,6 +147,9 @@ public:
void addActiveScriptWrappable(ActiveScriptWrappable*);
const ActiveScriptWrappableSet* activeScriptWrappables() const { return m_activeScriptWrappables.get(); }
+ void setScriptWrappableVisitor(ScriptWrappableVisitor* visitor) { m_scriptWrappableVisitor = wrapUnique(visitor); }
haraken 2016/06/03 12:32:06 This function should take unique_ptr<ScriptWrappab
+ ScriptWrappableVisitor* scriptWrappableVisitor() { return m_scriptWrappableVisitor.get(); }
+
private:
V8PerIsolateData();
~V8PerIsolateData();
@@ -188,6 +192,7 @@ private:
OwnPtr<ThreadDebugger> m_threadDebugger;
Persistent<ActiveScriptWrappableSet> m_activeScriptWrappables;
+ std::unique_ptr<ScriptWrappableVisitor> m_scriptWrappableVisitor;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698