1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef DataEquivalency_h
6 #define DataEquivalency_h
8 #include "wtf/OwnPtr.h"
9 #include "wtf/RefPtr.h"
14 bool dataEquivalent(const T* a, const T* b)
24 bool dataEquivalent(const RefPtr<T>& a, const RefPtr<T>& b)
26 return dataEquivalent(a.get(), b.get());
30 bool dataEquivalent(const Persistent<T>& a, const Persistent<T>& b)
32 return dataEquivalent(a.get(), b.get());
36 bool dataEquivalent(const Member<T>& a, const Member<T>& b)
38 return dataEquivalent(a.get(), b.get());
42 bool dataEquivalent(const OwnPtr<T>& a, const OwnPtr<T>& b)
44 return dataEquivalent(a.get(), b.get());
49 #endif // DataEquivalency_h