Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 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. | |
| 4 | |
| 5 #ifndef MemberCopy_h | |
| 6 #define MemberCopy_h | |
| 7 | |
| 8 #include "platform/heap/Persistent.h" | |
| 9 #include "platform/wtf/RefPtr.h" | |
| 10 | |
| 11 namespace blink { | |
| 12 | |
| 13 template <typename T> | |
| 14 RefPtr<T> MemberCopy(const RefPtr<T>& v) { | |
| 15 return v; | |
| 16 } | |
| 17 | |
| 18 template <typename T> | |
| 19 Persistent<T> MemberCopy(const Persistent<T>& v) { | |
| 20 return v; | |
| 21 } | |
| 22 | |
| 23 } // namespace blink | |
| 24 | |
| 25 #endif // MemberCopy_h | |
| OLD | NEW |