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

Unified Diff: Source/core/inspector/InjectedScriptManager.h

Issue 556823003: Revert "Revert of [oilpan]: optimize the way we allocate persistent handles in wrappers. (patchset … (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review feedback Created 6 years, 3 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/bindings/tests/results/V8TestTypedefs.cpp ('k') | Source/core/inspector/InjectedScriptManager.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InjectedScriptManager.h
diff --git a/Source/core/inspector/InjectedScriptManager.h b/Source/core/inspector/InjectedScriptManager.h
index 289613a5dbfdb75e063fa28b9780d85da15a3a31..f35fb937731b805206562b1cb832e5d8fad30efd 100644
--- a/Source/core/inspector/InjectedScriptManager.h
+++ b/Source/core/inspector/InjectedScriptManager.h
@@ -49,8 +49,17 @@ class InjectedScriptManager : public NoBaseWillBeGarbageCollectedFinalized<Injec
public:
struct CallbackData {
ScopedPersistent<v8::Object> handle;
- RefPtrWillBePersistent<InjectedScriptHost> host;
+#if ENABLE(OILPAN)
+ WrapperPersistent<InjectedScriptHost>* hostPtr;
+#else
+ RefPtr<InjectedScriptHost> host;
+#endif
InjectedScriptManager* injectedScriptManager;
+
+#if ENABLE(OILPAN)
+ CallbackData() : hostPtr(0) { }
+ ~CallbackData();
+#endif
};
static PassOwnPtrWillBeRawPtr<InjectedScriptManager> createForPage();
« no previous file with comments | « Source/bindings/tests/results/V8TestTypedefs.cpp ('k') | Source/core/inspector/InjectedScriptManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698