diff options
Diffstat (limited to 'Source/WebCore/Modules/webdatabase/OriginLock.h')
-rw-r--r-- | Source/WebCore/Modules/webdatabase/OriginLock.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/Source/WebCore/Modules/webdatabase/OriginLock.h b/Source/WebCore/Modules/webdatabase/OriginLock.h index 791a56a4a..d7151de78 100644 --- a/Source/WebCore/Modules/webdatabase/OriginLock.h +++ b/Source/WebCore/Modules/webdatabase/OriginLock.h @@ -23,14 +23,11 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef OriginLock_h -#define OriginLock_h - -#if ENABLE(SQL_DATABASE) +#pragma once #include "FileSystem.h" +#include <wtf/Lock.h> #include <wtf/ThreadSafeRefCounted.h> -#include <wtf/ThreadingPrimitives.h> #include <wtf/text/WTFString.h> namespace WebCore { @@ -39,7 +36,7 @@ class OriginLock : public ThreadSafeRefCounted<OriginLock> { WTF_MAKE_NONCOPYABLE(OriginLock); WTF_MAKE_FAST_ALLOCATED; public: OriginLock(String originPath); - ~OriginLock(); + WEBCORE_EXPORT ~OriginLock(); void lock(); void unlock(); @@ -50,14 +47,10 @@ private: static String lockFileNameForPath(String originPath); String m_lockFileName; - Mutex m_mutex; + Lock m_mutex; #if USE(FILE_LOCK) PlatformFileHandle m_lockHandle; #endif }; } // namespace WebCore - -#endif // ENABLE(SQL_DATABASE) - -#endif // OriginLock_h |