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

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

Issue 2755663002: Move files in wtf/ to platform/wtf/ (Part 2). (Closed)
Patch Set: Fix file name (facepalm). Created 3 years, 9 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/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
« no previous file with comments | « third_party/WebKit/Source/wtf/CheckedNumeric.h ('k') | third_party/WebKit/Source/wtf/ContainerAnnotations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698