#include "EventNames.h"
#include "FileSystem.h"
#include "HTMLElement.h"
+#include "SQLiteDatabaseTracker.h"
#include "SQLiteFileSystem.h"
#include "SQLiteStatement.h"
#include "SQLiteTransaction.h"
#include <wtf/MainThread.h>
#include <wtf/text/CString.h>
-#if PLATFORM(IOS)
-#include "SQLiteDatabaseTracker.h"
-#endif
-
namespace WebCore {
// If the StorageArea undergoes rapid changes, don't sync each change to disk.
ASSERT(!m_database.isOpen());
ASSERT(!m_databaseOpenFailed);
-#if PLATFORM(IOS)
SQLiteTransactionInProgressAutoCounter transactionCounter;
-#endif
+
String databaseFilename = m_syncManager->fullDatabaseFilename(m_databaseIdentifier);
if (!fileExists(databaseFilename) && openingStrategy == SkipIfNonExistent)
return;
}
-#if PLATFORM(IOS)
SQLiteTransactionInProgressAutoCounter transactionCounter;
-#endif
+
// If the clear flag is set, then we clear all items out before we write any new ones in.
if (clearItems) {
SQLiteStatement clear(m_database, "DELETE FROM ItemTable");