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

Unified Diff: third_party/WebKit/Source/wtf/PassRefPtr.h

Issue 1884113002: Remove RawPtr.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix HeapTest.Bind expectation Created 4 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
« no previous file with comments | « third_party/WebKit/Source/wtf/HashTraits.h ('k') | third_party/WebKit/Source/wtf/RawPtr.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/PassRefPtr.h
diff --git a/third_party/WebKit/Source/wtf/PassRefPtr.h b/third_party/WebKit/Source/wtf/PassRefPtr.h
index 60c91e69e185a4d4f7d625689e4f99c9b40a0cd3..38dd9c9622bed23b92e1f44af1c45f80736a3c99 100644
--- a/third_party/WebKit/Source/wtf/PassRefPtr.h
+++ b/third_party/WebKit/Source/wtf/PassRefPtr.h
@@ -23,7 +23,6 @@
#include "wtf/Allocator.h"
#include "wtf/Assertions.h"
-#include "wtf/RawPtr.h"
#include "wtf/TypeTraits.h"
namespace WTF {
@@ -62,7 +61,6 @@ public:
PassRefPtr() : m_ptr(nullptr) {}
PassRefPtr(std::nullptr_t) : m_ptr(nullptr) {}
PassRefPtr(T* ptr) : m_ptr(ptr) { refIfNotNull(ptr); }
- template <typename U> PassRefPtr(const RawPtr<U>& ptr, EnsurePtrConvertibleArgDecl(U, T)) : m_ptr(ptr.get()) { refIfNotNull(m_ptr); }
explicit PassRefPtr(T& ptr) : m_ptr(&ptr) { m_ptr->ref(); }
// It somewhat breaks the type system to allow transfer of ownership out of
// a const PassRefPtr. However, it makes it much easier to work with
@@ -144,16 +142,6 @@ template <typename T, typename U> inline bool operator==(T* a, const PassRefPtr<
return a == b.get();
}
-template <typename T, typename U> inline bool operator==(const PassRefPtr<T>& a, const RawPtr<U>& b)
-{
- return a.get() == b.get();
-}
-
-template <typename T, typename U> inline bool operator==(const RawPtr<T>& a, const PassRefPtr<U>& b)
-{
- return a.get() == b.get();
-}
-
template <typename T, typename U> inline bool operator!=(const PassRefPtr<T>& a, const PassRefPtr<U>& b)
{
return a.get() != b.get();
@@ -179,16 +167,6 @@ template <typename T, typename U> inline bool operator!=(T* a, const PassRefPtr<
return a != b.get();
}
-template <typename T, typename U> inline bool operator!=(const PassRefPtr<T>& a, const RawPtr<U>& b)
-{
- return a.get() != b.get();
-}
-
-template <typename T, typename U> inline bool operator!=(const RawPtr<T>& a, const PassRefPtr<U>& b)
-{
- return a.get() != b.get();
-}
-
template <typename T> PassRefPtr<T> adoptRef(T* p)
{
adopted(p);
« no previous file with comments | « third_party/WebKit/Source/wtf/HashTraits.h ('k') | third_party/WebKit/Source/wtf/RawPtr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698