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

Unified Diff: Source/core/testing/InternalSettings.h

Issue 255983003: Oilpan: Move all supplements of Page, Document, and WorkerClients to the managed heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review comments Created 6 years, 8 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: Source/core/testing/InternalSettings.h
diff --git a/Source/core/testing/InternalSettings.h b/Source/core/testing/InternalSettings.h
index 7886c1c26de170fd0b8b70bf8641db872e6513a1..ab59adcb43f74566b4aab9f29b00306b00837a22 100644
--- a/Source/core/testing/InternalSettings.h
+++ b/Source/core/testing/InternalSettings.h
@@ -43,7 +43,12 @@ class LocalFrame;
class Page;
class Settings;
+#if ENABLE(OILPAN)
+class InternalSettings FINAL : public InternalSettingsGenerated, public HeapSupplement<Page> {
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(InternalSettings);
+#else
class InternalSettings FINAL : public InternalSettingsGenerated {
+#endif
public:
class Backup {
public:
@@ -74,7 +79,10 @@ public:
return adoptRefWillBeNoop(new InternalSettings(page));
}
static InternalSettings* from(Page&);
+
+#if !ENABLE(OILPAN)
void hostDestroyed() { m_page = 0; }
+#endif
haraken 2014/04/30 02:41:22 Just I'm curious but why do we need to clear m_pag
zerny-chromium 2014/04/30 08:29:34 InternalSettings is RefCounted and does not keep t
virtual ~InternalSettings();
void resetToConsistentState();

Powered by Google App Engine
This is Rietveld 408576698