diff options
Diffstat (limited to 'WebCore/storage/Database.cpp')
-rw-r--r-- | WebCore/storage/Database.cpp | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/WebCore/storage/Database.cpp b/WebCore/storage/Database.cpp index 941c49c..e59ddaf 100644 --- a/WebCore/storage/Database.cpp +++ b/WebCore/storage/Database.cpp @@ -29,6 +29,9 @@ #include "config.h" #include "Database.h" +#include <wtf/StdLibExtras.h> + +#if ENABLE(DATABASE) #include "ChangeVersionWrapper.h" #include "CString.h" #include "DatabaseAuthorizer.h" @@ -48,7 +51,7 @@ #include "SQLiteStatement.h" #include "SQLResultSet.h" #include <wtf/MainThread.h> -#include <wtf/StdLibExtras.h> +#endif #if USE(JSC) #include "JSDOMWindow.h" @@ -57,6 +60,14 @@ namespace WebCore { +const String& Database::databaseInfoTableName() +{ + DEFINE_STATIC_LOCAL(String, name, ("__WebKitDatabaseInfoTable__")); + return name; +} + +#if ENABLE(DATABASE) + static Mutex& guidMutex() { // Note: We don't have to use AtomicallyInitializedStatic here because @@ -80,12 +91,6 @@ static GuidDatabaseMap& guidToDatabaseMap() return map; } -const String& Database::databaseInfoTableName() -{ - DEFINE_STATIC_LOCAL(String, name, ("__WebKitDatabaseInfoTable__")); - return name; -} - static const String& databaseVersionKey() { DEFINE_STATIC_LOCAL(String, key, ("WebKitDatabaseVersionKey")); @@ -599,4 +604,6 @@ String Database::stringIdentifier() const return m_name.copy(); } +#endif + } |