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

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, 10 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 6c6b79cdfcdd74fee549d395c63aad13535c69ee..32b16af16a60687e03b53cf4aec3a3d453bf5db6 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

Powered by Google App Engine
This is Rietveld 408576698