Title: [223258] trunk/Source/WTF
- Revision
- 223258
- Author
- [email protected]
- Date
- 2017-10-12 14:29:29 -0700 (Thu, 12 Oct 2017)
Log Message
Add CompletionHandler and HashCountedSet to wtf/Forward.h
https://bugs.webkit.org/show_bug.cgi?id=178231
Reviewed by Tim Horton.
* wtf/Forward.h:
* wtf/HashCountedSet.h:
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (223257 => 223258)
--- trunk/Source/WTF/ChangeLog 2017-10-12 21:21:57 UTC (rev 223257)
+++ trunk/Source/WTF/ChangeLog 2017-10-12 21:29:29 UTC (rev 223258)
@@ -1,3 +1,13 @@
+2017-10-12 Alex Christensen <[email protected]>
+
+ Add CompletionHandler and HashCountedSet to wtf/Forward.h
+ https://bugs.webkit.org/show_bug.cgi?id=178231
+
+ Reviewed by Tim Horton.
+
+ * wtf/Forward.h:
+ * wtf/HashCountedSet.h:
+
2017-10-11 Sam Weinig <[email protected]>
Remove out-parameter variants of copyToVector
Modified: trunk/Source/WTF/wtf/Forward.h (223257 => 223258)
--- trunk/Source/WTF/wtf/Forward.h 2017-10-12 21:21:57 UTC (rev 223257)
+++ trunk/Source/WTF/wtf/Forward.h 2017-10-12 21:29:29 UTC (rev 223258)
@@ -31,17 +31,22 @@
struct FastMalloc;
class CrashOnOverflow;
-template<typename T> class Function;
-template<typename T> class LazyNeverDestroyed;
-template<typename T> class NeverDestroyed;
-template<typename T> class OptionSet;
-template<typename T> class Ref;
-template<typename T> class RefPtr;
-template<typename T> class StringBuffer;
+template<typename> class CompletionHandler;
+template<typename> class Function;
+template<typename> class LazyNeverDestroyed;
+template<typename> class NeverDestroyed;
+template<typename> class OptionSet;
+template<typename> class Ref;
+template<typename> class RefPtr;
+template<typename> class StringBuffer;
-template<typename... T> class Variant;
-template<typename T, size_t inlineCapacity = 0, typename OverflowHandler = CrashOnOverflow, size_t minCapacity = 16, typename Malloc = FastMalloc> class Vector;
+template<typename> struct DefaultHash { using Hash = void; };
+template<typename> struct HashTraits;
+template<typename...> class Variant;
+template<typename, size_t inlineCapacity = 0, typename OverflowHandler = CrashOnOverflow, size_t minCapacity = 16, typename Malloc = FastMalloc> class Vector;
+template<typename Value, typename HashFunctions = typename DefaultHash<Value>::Hash, typename Traits = HashTraits<Value>> class HashCountedSet;
+
class AtomicString;
class AtomicStringImpl;
class BinarySemaphore;
@@ -60,9 +65,11 @@
using WTF::AtomicString;
using WTF::AtomicStringImpl;
using WTF::BinarySemaphore;
+using WTF::CompletionHandler;
using WTF::CString;
using WTF::Function;
using WTF::FunctionDispatcher;
+using WTF::HashCountedSet;
using WTF::LazyNeverDestroyed;
using WTF::NeverDestroyed;
using WTF::OptionSet;
Modified: trunk/Source/WTF/wtf/HashCountedSet.h (223257 => 223258)
--- trunk/Source/WTF/wtf/HashCountedSet.h 2017-10-12 21:21:57 UTC (rev 223257)
+++ trunk/Source/WTF/wtf/HashCountedSet.h 2017-10-12 21:29:29 UTC (rev 223258)
@@ -22,12 +22,13 @@
#include <initializer_list>
#include <wtf/Assertions.h>
+#include <wtf/Forward.h>
#include <wtf/HashMap.h>
#include <wtf/Vector.h>
namespace WTF {
-template<typename Value, typename HashFunctions = typename DefaultHash<Value>::Hash, typename Traits = HashTraits<Value>>
+template<typename Value, typename HashFunctions, typename Traits>
class HashCountedSet final {
WTF_MAKE_FAST_ALLOCATED;
private:
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes