Commit 4a35f85f authored by kov@webkit.org's avatar kov@webkit.org

2009-05-14 Ben Murdoch <benm@google.com>

        Reviewed by Darin Adler.

        Add more ENABLE_DATABASE guards.
        https://bugs.webkit.org/show_bug.cgi?id=25616

        See also https://bugs.webkit.org/show_bug.cgi?id=24776 (original set of guards)

        * bindings/js/JSSQLResultSetRowListCustom.cpp:
        * bindings/v8/custom/V8CustomSQLStatementCallback.cpp:
        * bindings/v8/custom/V8CustomSQLStatementCallback.h:
        * bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp:
        * bindings/v8/custom/V8CustomSQLStatementErrorCallback.h:
        * bindings/v8/custom/V8CustomSQLTransactionCallback.cpp:
        * bindings/v8/custom/V8CustomSQLTransactionCallback.h:
        * bindings/v8/custom/V8CustomSQLTransactionErrorCallback.cpp:
        * bindings/v8/custom/V8CustomSQLTransactionErrorCallback.h:
        * bindings/v8/custom/V8DatabaseCustom.cpp:
        * bindings/v8/custom/V8SQLResultSetRowListCustom.cpp:
        * bindings/v8/custom/V8SQLTransactionCustom.cpp:
        * storage/Database.cpp:
        * storage/DatabaseDetails.h:
        * storage/OriginUsageRecord.cpp:
        * storage/OriginUsageRecord.h:
        * storage/SQLError.h:
        * storage/SQLError.idl:
        * storage/SQLResultSet.cpp:
        * storage/SQLResultSet.h:
        * storage/SQLResultSet.idl:
        * storage/SQLResultSetRowList.cpp:
        * storage/SQLResultSetRowList.h:
        * storage/SQLResultSetRowList.idl:
        * storage/SQLStatementCallback.h:
        * storage/SQLStatementErrorCallback.h:
        * storage/SQLTransactionCallback.h:
        * storage/SQLTransactionErrorCallback.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43699 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 99cbf3fc
2009-05-14 Ben Murdoch <benm@google.com>
Reviewed by Darin Adler.
Add more ENABLE_DATABASE guards.
https://bugs.webkit.org/show_bug.cgi?id=25616
See also https://bugs.webkit.org/show_bug.cgi?id=24776 (original set of guards)
* bindings/js/JSSQLResultSetRowListCustom.cpp:
* bindings/v8/custom/V8CustomSQLStatementCallback.cpp:
* bindings/v8/custom/V8CustomSQLStatementCallback.h:
* bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp:
* bindings/v8/custom/V8CustomSQLStatementErrorCallback.h:
* bindings/v8/custom/V8CustomSQLTransactionCallback.cpp:
* bindings/v8/custom/V8CustomSQLTransactionCallback.h:
* bindings/v8/custom/V8CustomSQLTransactionErrorCallback.cpp:
* bindings/v8/custom/V8CustomSQLTransactionErrorCallback.h:
* bindings/v8/custom/V8DatabaseCustom.cpp:
* bindings/v8/custom/V8SQLResultSetRowListCustom.cpp:
* bindings/v8/custom/V8SQLTransactionCustom.cpp:
* storage/Database.cpp:
* storage/DatabaseDetails.h:
* storage/OriginUsageRecord.cpp:
* storage/OriginUsageRecord.h:
* storage/SQLError.h:
* storage/SQLError.idl:
* storage/SQLResultSet.cpp:
* storage/SQLResultSet.h:
* storage/SQLResultSet.idl:
* storage/SQLResultSetRowList.cpp:
* storage/SQLResultSetRowList.h:
* storage/SQLResultSetRowList.idl:
* storage/SQLStatementCallback.h:
* storage/SQLStatementErrorCallback.h:
* storage/SQLTransactionCallback.h:
* storage/SQLTransactionErrorCallback.h:
2009-05-11 Holger Hans Peter Freyther <zecke@selfish.org>
Reviewed by Darin Adler.
......@@ -29,6 +29,8 @@
#include "config.h"
#include "JSSQLResultSetRowList.h"
#if ENABLE(DATABASE)
#include "ExceptionCode.h"
#include "SQLValue.h"
#include "SQLResultSetRowList.h"
......@@ -79,3 +81,5 @@ JSValue JSSQLResultSetRowList::item(ExecState* exec, const ArgList& args)
}
}
#endif
......@@ -29,6 +29,9 @@
*/
#include "config.h"
#if ENABLE(DATABASE)
#include "V8CustomSQLStatementCallback.h"
#include "Frame.h"
......@@ -70,3 +73,6 @@ void V8CustomSQLStatementCallback::handleEvent(SQLTransaction* transaction, SQLR
}
} // namespace WebCore
#endif
......@@ -31,6 +31,8 @@
#ifndef V8CustomSQLStatementCallback_h
#define V8CustomSQLStatementCallback_h
#if ENABLE(DATABASE)
#include "SQLStatementCallback.h"
#include <v8.h>
#include <wtf/PassRefPtr.h>
......@@ -59,4 +61,6 @@ private:
} // namespace WebCore
#endif
#endif // V8CustomSQLStatementCallback_h
......@@ -29,6 +29,9 @@
*/
#include "config.h"
#if ENABLE(DATABASE)
#include "V8CustomSQLStatementErrorCallback.h"
#include "Frame.h"
......@@ -74,3 +77,6 @@ bool V8CustomSQLStatementErrorCallback::handleEvent(SQLTransaction* transaction,
}
} // namespace WebCore
#endif
......@@ -31,6 +31,8 @@
#ifndef V8CustomSQLStatementErrorCallback_h
#define V8CustomSQLStatementErrorCallback_h
#if ENABLE(DATABASE)
#include "SQLStatementErrorCallback.h"
#include "SQLStatementErrorCallback.h"
......@@ -61,4 +63,6 @@ private:
} // namespace WebCore
#endif
#endif // V8CustomSQLStatementErrorCallback_h
......@@ -29,6 +29,9 @@
*/
#include "config.h"
#if ENABLE(DATABASE)
#include "V8CustomSQLTransactionCallback.h"
#include "Frame.h"
......@@ -73,3 +76,6 @@ void V8CustomSQLTransactionCallback::handleEvent(SQLTransaction* transaction, bo
}
} // namespace WebCore
#endif
......@@ -31,6 +31,8 @@
#ifndef V8CustomSQLTransactionCallback_h
#define V8CustomSQLTransactionCallback_h
#if ENABLE(DATABASE)
#include "SQLTransactionCallback.h"
#include <v8.h>
#include <wtf/PassRefPtr.h>
......@@ -59,4 +61,6 @@ private:
} // namespace WebCore
#endif
#endif // V8CustomSQLTransactionCallback_h
......@@ -29,6 +29,9 @@
*/
#include "config.h"
#if ENABLE(DATABASE)
#include "V8CustomSQLTransactionErrorCallback.h"
#include "Frame.h"
......@@ -73,3 +76,6 @@ bool V8CustomSQLTransactionErrorCallback::handleEvent(SQLError* error)
}
} // namespace WebCore
#endif
......@@ -31,6 +31,8 @@
#ifndef V8CustomSQLTransactionErrorCallback_h
#define V8CustomSQLTransactionErrorCallback_h
#if ENABLE(DATABASE)
#include "SQLTransactionErrorCallback.h"
#include <v8.h>
#include <wtf/PassRefPtr.h>
......@@ -60,4 +62,6 @@ private:
} // namespace WebCore
#endif
#endif // V8CustomSQLTransactionErrorCallback_h
......@@ -30,6 +30,8 @@
#include "config.h"
#if ENABLE(DATABASE)
#include "v8_binding.h"
#include "v8_custom.h"
#include "v8_proxy.h"
......@@ -91,3 +93,6 @@ CALLBACK_FUNC_DECL(DatabaseTransaction)
}
} // namespace WebCore
#endif
......@@ -30,6 +30,8 @@
#include "config.h"
#if ENABLE(DATABASE)
#include "v8_binding.h"
#include "v8_custom.h"
#include "v8_proxy.h"
......@@ -88,3 +90,6 @@ CALLBACK_FUNC_DECL(SQLResultSetRowListItem)
}
} // namespace WebCore
#endif
......@@ -30,6 +30,8 @@
#include "config.h"
#if ENABLE(DATABASE)
#include "v8_binding.h"
#include "v8_custom.h"
#include "v8_proxy.h"
......@@ -112,3 +114,6 @@ CALLBACK_FUNC_DECL(SQLTransactionExecuteSql)
}
} // namespace WebCore
#endif
......@@ -29,6 +29,8 @@
#include "config.h"
#include "Database.h"
#include <wtf/StdLibExtras.h>
#if ENABLE(DATABASE)
#include "ChangeVersionWrapper.h"
#include "CString.h"
......@@ -49,7 +51,6 @@
#include "SQLiteStatement.h"
#include "SQLResultSet.h"
#include <wtf/MainThread.h>
#include <wtf/StdLibExtras.h>
#endif
#if USE(JSC)
......
......@@ -29,6 +29,8 @@
#ifndef DatabaseDetails_h
#define DatabaseDetails_h
#if ENABLE(DATABASE)
#include "PlatformString.h"
namespace WebCore {
......@@ -64,4 +66,6 @@ private:
} // namespace WebCore
#endif
#endif // DatabaseDetails_h
......@@ -28,6 +28,8 @@
#include "config.h"
#include "OriginUsageRecord.h"
#if ENABLE(DATABASE)
#include "FileSystem.h"
namespace WebCore {
......@@ -102,3 +104,5 @@ unsigned long long OriginUsageRecord::diskUsage()
}
}
#endif
......@@ -28,6 +28,8 @@
#ifndef OriginUsageRecord_h
#define OriginUsageRecord_h
#if ENABLE(DATABASE)
#include "PlatformString.h"
#include "StringHash.h"
......@@ -64,4 +66,6 @@ private:
} // namespace WebCore
#endif
#endif
......@@ -29,6 +29,8 @@
#ifndef SQLError_h
#define SQLError_h
#if ENABLE(DATABASE)
#include "PlatformString.h"
#include <wtf/Threading.h>
......@@ -49,4 +51,6 @@ private:
}
#endif
#endif // SQLError_h
......@@ -28,7 +28,9 @@
module storage {
interface SQLError {
interface [
Conditional=DATABASE
] SQLError {
readonly attribute unsigned long code;
readonly attribute DOMString message;
};
......
......@@ -29,6 +29,8 @@
#include "config.h"
#include "SQLResultSet.h"
#if ENABLE(DATABASE)
#include "ExceptionCode.h"
#include "SQLValue.h"
......@@ -79,3 +81,5 @@ void SQLResultSet::setRowsAffected(int count)
}
}
#endif
......@@ -29,6 +29,8 @@
#ifndef SQLResultSet_h
#define SQLResultSet_h
#if ENABLE(DATABASE)
#include "SQLResultSetRowList.h"
#include <wtf/Threading.h>
......@@ -60,4 +62,6 @@ private:
} // namespace WebCore
#endif
#endif // SQLResultSet_h
......@@ -28,7 +28,9 @@
module storage {
interface SQLResultSet {
interface [
Conditional=DATABASE
] SQLResultSet {
readonly attribute SQLResultSetRowList rows;
readonly attribute long insertId
......
......@@ -29,6 +29,8 @@
#include "config.h"
#include "SQLResultSetRowList.h"
#if ENABLE(DATABASE)
namespace WebCore {
unsigned SQLResultSetRowList::length() const
......@@ -42,3 +44,5 @@ unsigned SQLResultSetRowList::length() const
}
}
#endif
......@@ -29,6 +29,8 @@
#ifndef SQLResultSetRowList_h
#define SQLResultSetRowList_h
#if ENABLE(DATABASE)
#include <wtf/PassRefPtr.h>
#include "SQLValue.h"
......@@ -56,3 +58,5 @@ private:
}
#endif
#endif
......@@ -28,7 +28,9 @@
module storage {
interface SQLResultSetRowList {
interface [
Conditional=DATABASE
] SQLResultSetRowList {
readonly attribute unsigned long length;
[Custom] DOMObject item(in unsigned long index);
};
......
......@@ -28,6 +28,8 @@
#ifndef SQLStatementCallback_h
#define SQLStatementCallback_h
#if ENABLE(DATABASE)
#include <wtf/Threading.h>
namespace WebCore {
......@@ -43,6 +45,6 @@ public:
}
#endif // SQLStatementErrorCallback_h
#endif
#endif // SQLStatementErrorCallback_h
......@@ -29,6 +29,8 @@
#ifndef SQLStatementErrorCallback_h
#define SQLStatementErrorCallback_h
#if ENABLE(DATABASE)
#include <wtf/Threading.h>
namespace WebCore {
......@@ -44,6 +46,6 @@ public:
}
#endif // SQLStatementErrorCallback_h
#endif
#endif // SQLStatementErrorCallback_h
......@@ -29,6 +29,8 @@
#ifndef SQLTransactionCallback_h
#define SQLTransactionCallback_h
#if ENABLE(DATABASE)
#include <wtf/Threading.h>
namespace WebCore {
......@@ -44,4 +46,6 @@ public:
}
#endif
#endif // SQLTransactionCallback_h
......@@ -29,6 +29,8 @@
#ifndef SQLTransactionErrorCallback_h
#define SQLTransactionErrorCallback_h
#if ENABLE(DATABASE)
#include <wtf/Threading.h>
namespace WebCore {
......@@ -43,6 +45,8 @@ namespace WebCore {
}
#endif
#endif // SQLTransactionErrorCallback_h
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment