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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: third_party/WebKit/Source/core/frame/Location.h
diff --git a/third_party/WebKit/Source/core/frame/Location.h b/third_party/WebKit/Source/core/frame/Location.h
index 57e3938d66ea7a88e17a4afd616d84cd79450f52..ba568d73b36a200f348d6f45f3a7891baba25f82 100644
--- a/third_party/WebKit/Source/core/frame/Location.h
+++ b/third_party/WebKit/Source/core/frame/Location.h
@@ -49,12 +49,12 @@ class KURL;
// in a RemoteFrame. Rather than making DOMWindowProperty support RemoteFrames and generating a lot
// code churn, Location is implemented as a one-off with some custom lifetime management code. Namely,
// it needs a manual call to reset() from DOMWindow::reset() to ensure it doesn't retain a stale Frame pointer.
-class CORE_EXPORT Location final : public RefCountedWillBeGarbageCollected<Location>, public ScriptWrappable {
+class CORE_EXPORT Location final : public GarbageCollected<Location>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
- static PassRefPtrWillBeRawPtr<Location> create(Frame* frame)
+ static RawPtr<Location> create(Frame* frame)
{
- return adoptRefWillBeNoop(new Location(frame));
+ return new Location(frame);
}
Frame* frame() const { return m_frame.get(); }
@@ -83,7 +83,7 @@ public:
String hash() const;
String origin() const;
- PassRefPtrWillBeRawPtr<DOMStringList> ancestorOrigins() const;
+ RawPtr<DOMStringList> ancestorOrigins() const;
// Just return the |this| object the way the normal valueOf function on the Object prototype would.
// The valueOf function is only added to make sure that it cannot be overwritten on location
@@ -100,7 +100,7 @@ private:
const KURL& url() const;
- RawPtrWillBeMember<Frame> m_frame;
+ Member<Frame> m_frame;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrame.cpp ('k') | third_party/WebKit/Source/core/frame/Location.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698