| Index: third_party/WebKit/Source/wtf/ConditionalDestructor.h
|
| diff --git a/third_party/WebKit/Source/wtf/ConditionalDestructor.h b/third_party/WebKit/Source/wtf/ConditionalDestructor.h
|
| index c2fdd1c5bcd30bb376f623eee31639bb6e118972..fc4ba2a4b2afdd9f4f7ed09115f70ac0bf2f66d7 100644
|
| --- a/third_party/WebKit/Source/wtf/ConditionalDestructor.h
|
| +++ b/third_party/WebKit/Source/wtf/ConditionalDestructor.h
|
| @@ -1,28 +1,9 @@
|
| -// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef ConditionalDestructor_h
|
| -#define ConditionalDestructor_h
|
| +#include "platform/wtf/ConditionalDestructor.h"
|
|
|
| -namespace WTF {
|
| -
|
| -// ConditionalDestructor defines the destructor of the derived object.
|
| -// This base is used in order to completely avoid creating a destructor
|
| -// for an object that does not need to be destructed. By doing so,
|
| -// the clang compiler will have correct information about whether or not
|
| -// the object has a trivial destructor.
|
| -// Note: the derived object MUST release all its recources at the finalize()
|
| -// method.
|
| -template <typename Derived, bool noDestructor>
|
| -class ConditionalDestructor {
|
| - public:
|
| - ~ConditionalDestructor() { static_cast<Derived*>(this)->finalize(); }
|
| -};
|
| -
|
| -template <typename Derived>
|
| -class ConditionalDestructor<Derived, true> {};
|
| -
|
| -} // namespace WTF
|
| -
|
| -#endif // ConditionalDestructor_h
|
| +// The contents of this header was moved to platform/wtf as part of
|
| +// WTF migration project. See the following post for details:
|
| +// https://groups.google.com/a/chromium.org/d/msg/blink-dev/tLdAZCTlcAA/bYXVT8gYCAAJ
|
|
|