[WTF] Add makeUnique<T>, which ensures T is fast-allocated, makeUnique / makeUniqueWi...
[WebKit-https.git] / Source / WebCore / platform / network / cf / ResourceHandleCFURLConnectionDelegateWithOperationQueue.cpp
index dad9010..713b4df 100644 (file)
@@ -169,7 +169,7 @@ CFURLRequestRef ResourceHandleCFURLConnectionDelegateWithOperationQueue::willSen
     };
 
     if (m_messageQueue)
-        m_messageQueue->append(std::make_unique<Function<void()>>(WTFMove(work)));
+        m_messageQueue->append(makeUnique<Function<void()>>(WTFMove(work)));
     else
         callOnMainThread(WTFMove(work));
     m_semaphore.wait();
@@ -207,7 +207,7 @@ void ResourceHandleCFURLConnectionDelegateWithOperationQueue::didReceiveResponse
     };
 
     if (m_messageQueue)
-        m_messageQueue->append(std::make_unique<Function<void()>>(WTFMove(work)));
+        m_messageQueue->append(makeUnique<Function<void()>>(WTFMove(work)));
     else
         callOnMainThread(WTFMove(work));
     m_semaphore.wait();
@@ -226,7 +226,7 @@ void ResourceHandleCFURLConnectionDelegateWithOperationQueue::didReceiveData(CFD
     };
     
     if (m_messageQueue)
-        m_messageQueue->append(std::make_unique<Function<void()>>(WTFMove(work)));
+        m_messageQueue->append(makeUnique<Function<void()>>(WTFMove(work)));
     else
         callOnMainThread(WTFMove(work));
 }
@@ -251,7 +251,7 @@ void ResourceHandleCFURLConnectionDelegateWithOperationQueue::didFinishLoading()
     };
     
     if (m_messageQueue)
-        m_messageQueue->append(std::make_unique<Function<void()>>(WTFMove(work)));
+        m_messageQueue->append(makeUnique<Function<void()>>(WTFMove(work)));
     else
         callOnMainThread(WTFMove(work));
 }
@@ -276,7 +276,7 @@ void ResourceHandleCFURLConnectionDelegateWithOperationQueue::didFail(CFErrorRef
     };
 
     if (m_messageQueue)
-        m_messageQueue->append(std::make_unique<Function<void()>>(WTFMove(work)));
+        m_messageQueue->append(makeUnique<Function<void()>>(WTFMove(work)));
     else
         callOnMainThread(WTFMove(work));
 }
@@ -311,7 +311,7 @@ CFCachedURLResponseRef ResourceHandleCFURLConnectionDelegateWithOperationQueue::
     };
     
     if (m_messageQueue)
-        m_messageQueue->append(std::make_unique<Function<void()>>(WTFMove(work)));
+        m_messageQueue->append(makeUnique<Function<void()>>(WTFMove(work)));
     else
         callOnMainThread(WTFMove(work));
     m_semaphore.wait();
@@ -331,7 +331,7 @@ void ResourceHandleCFURLConnectionDelegateWithOperationQueue::didReceiveChalleng
     };
 
     if (m_messageQueue)
-        m_messageQueue->append(std::make_unique<Function<void()>>(WTFMove(work)));
+        m_messageQueue->append(makeUnique<Function<void()>>(WTFMove(work)));
     else
         callOnMainThread(WTFMove(work));
 }
@@ -349,7 +349,7 @@ void ResourceHandleCFURLConnectionDelegateWithOperationQueue::didSendBodyData(CF
     };
 
     if (m_messageQueue)
-        m_messageQueue->append(std::make_unique<Function<void()>>(WTFMove(work)));
+        m_messageQueue->append(makeUnique<Function<void()>>(WTFMove(work)));
     else
         callOnMainThread(WTFMove(work));
 }
@@ -380,7 +380,7 @@ Boolean ResourceHandleCFURLConnectionDelegateWithOperationQueue::canRespondToPro
     };
     
     if (m_messageQueue)
-        m_messageQueue->append(std::make_unique<Function<void()>>(WTFMove(work)));
+        m_messageQueue->append(makeUnique<Function<void()>>(WTFMove(work)));
     else
         callOnMainThread(WTFMove(work));
     m_semaphore.wait();