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

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

Issue 2755793004: Move files in wtf/ to platform/wtf/ (Part 3). (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/wtf/NotFound.h ('k') | third_party/WebKit/Source/wtf/SizeAssertions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/Optional.h
diff --git a/third_party/WebKit/Source/wtf/Optional.h b/third_party/WebKit/Source/wtf/Optional.h
index 84028baa7647f819ad21d868755a02139cbbaa83..10216d304a4f2ffc95b0690e66c0e80fae0a51a6 100644
--- a/third_party/WebKit/Source/wtf/Optional.h
+++ b/third_party/WebKit/Source/wtf/Optional.h
@@ -1,29 +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 Optional_h
-#define Optional_h
+#include "platform/wtf/Optional.h"
-#include "base/optional.h"
-#include "wtf/TypeTraits.h"
-
-namespace WTF {
-
-// WTF::Optional is base::Optional. See base/optional.h for documentation.
-//
-// A clang plugin enforces that garbage collected types are not allocated
-// outside of the heap, similarly we enforce that one doesn't create garbage
-// collected types nested inside an Optional.
-template <typename T>
-using Optional = typename std::enable_if<!IsGarbageCollectedType<T>::value,
- base::Optional<T>>::type;
-
-constexpr base::nullopt_t nullopt = base::nullopt;
-constexpr base::in_place_t in_place = base::in_place;
-
-} // namespace WTF
-
-using WTF::Optional;
-
-#endif // Optional_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/NotFound.h ('k') | third_party/WebKit/Source/wtf/SizeAssertions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698