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

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

Issue 196133029: Oilpan: move Location to the oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased 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/frame/DOMWindow.h ('k') | Source/core/frame/Location.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/Location.h
diff --git a/Source/core/frame/Location.h b/Source/core/frame/Location.h
index 8930ae2e1133abab9a4479eea6f0f9588d025d85..e8a0d6dfcee96be97963405f4ee7783c324842af 100644
--- a/Source/core/frame/Location.h
+++ b/Source/core/frame/Location.h
@@ -43,9 +43,12 @@ class ExceptionState;
class LocalFrame;
class KURL;
-class Location FINAL : public ScriptWrappable, public RefCounted<Location>, public DOMWindowProperty {
+class Location FINAL : public RefCountedWillBeGarbageCollectedFinalized<Location>, public ScriptWrappable, public DOMWindowProperty {
public:
- static PassRefPtr<Location> create(LocalFrame* frame) { return adoptRef(new Location(frame)); }
+ static PassRefPtrWillBeRawPtr<Location> create(LocalFrame* frame)
+ {
+ return adoptRefWillBeNoop(new Location(frame));
+ }
void setHref(DOMWindow* callingWindow, DOMWindow* enteredWindow, const String&);
String href() const;
@@ -72,6 +75,8 @@ public:
PassRefPtr<DOMStringList> ancestorOrigins() const;
+ void trace(Visitor*) { }
+
private:
explicit Location(LocalFrame*);
« no previous file with comments | « Source/core/frame/DOMWindow.h ('k') | Source/core/frame/Location.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698