Manage StorageThread through std::unique_ptr
authorzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 Nov 2013 17:33:10 +0000 (17:33 +0000)
committerzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 Nov 2013 17:33:10 +0000 (17:33 +0000)
commit475b4e8b9a9029ba69764b65356684884c21d199
treef90ea1d17b20541ca9dcfbd1073807c710cdd3e1
parent70a94381cf200a7af6cfb89670d81052ef9099b3
Manage StorageThread through std::unique_ptr
https://bugs.webkit.org/show_bug.cgi?id=124197

Reviewed by Anders Carlsson.

New StorageThread objects are crafted through std::make_unique. This removes the need for the static
StorageThread::create() method but requires that the StorageThread constructor is made public.

* storage/StorageSyncManager.cpp:
(WebCore::StorageSyncManager::StorageSyncManager):
* storage/StorageSyncManager.h:
* storage/StorageThread.cpp:
* storage/StorageThread.h:
* storage/StorageTracker.cpp:
(WebCore::StorageTracker::StorageTracker):
* storage/StorageTracker.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@159115 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/storage/StorageSyncManager.cpp
Source/WebCore/storage/StorageSyncManager.h
Source/WebCore/storage/StorageThread.cpp
Source/WebCore/storage/StorageThread.h
Source/WebCore/storage/StorageTracker.cpp
Source/WebCore/storage/StorageTracker.h