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

Unified Diff: Source/core/frame/BarProp.h

Issue 211373002: Oilpan: move DOMWindow object to the oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: setNativeInfoForInnerGlobalObject() -> setNativeInfoForHiddenWrapper() Created 6 years, 9 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/events/WindowEventContext.h ('k') | Source/core/frame/BarProp.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/BarProp.h
diff --git a/Source/core/frame/BarProp.h b/Source/core/frame/BarProp.h
index 84264a70c5321a375140dbcab6f561d0aefee9b4..d8e8b3eaaca676f6afa53b0dea1b077cefeba0a6 100644
--- a/Source/core/frame/BarProp.h
+++ b/Source/core/frame/BarProp.h
@@ -31,6 +31,7 @@
#include "bindings/v8/ScriptWrappable.h"
#include "core/frame/DOMWindowProperty.h"
+#include "heap/Handle.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
@@ -38,14 +39,19 @@ namespace WebCore {
class LocalFrame;
- class BarProp : public ScriptWrappable, public RefCounted<BarProp>, public DOMWindowProperty {
+ class BarProp FINAL : public RefCountedWillBeGarbageCollectedFinalized<BarProp>, public ScriptWrappable, public DOMWindowProperty {
public:
enum Type { Locationbar, Menubar, Personalbar, Scrollbars, Statusbar, Toolbar };
- static PassRefPtr<BarProp> create(LocalFrame* frame, Type type) { return adoptRef(new BarProp(frame, type)); }
+ static PassRefPtrWillBeRawPtr<BarProp> create(LocalFrame* frame, Type type)
+ {
+ return adoptRefWillBeNoop(new BarProp(frame, type));
+ }
bool visible() const;
+ void trace(Visitor*) { }
+
private:
BarProp(LocalFrame*, Type);
Type m_type;
« no previous file with comments | « Source/core/events/WindowEventContext.h ('k') | Source/core/frame/BarProp.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698