summaryrefslogtreecommitdiff
path: root/Source/WebCore/Modules/webdatabase/OriginLock.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/Modules/webdatabase/OriginLock.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/Modules/webdatabase/OriginLock.h')
-rw-r--r--Source/WebCore/Modules/webdatabase/OriginLock.h15
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