| Index: WebCore/workers/WorkerContext.cpp
|
| ===================================================================
|
| --- WebCore/workers/WorkerContext.cpp (revision 55036)
|
| +++ WebCore/workers/WorkerContext.cpp (working copy)
|
| @@ -33,6 +33,7 @@
|
|
|
| #include "ActiveDOMObject.h"
|
| #include "Database.h"
|
| +#include "DatabaseTracker.h"
|
| #include "DOMTimer.h"
|
| #include "DOMWindow.h"
|
| #include "Event.h"
|
| @@ -263,13 +264,21 @@
|
| return 0;
|
| }
|
|
|
| - ASSERT(Database::isAvailable());
|
| if (!Database::isAvailable())
|
| return 0;
|
|
|
| return Database::openDatabase(this, name, version, displayName, estimatedSize, ec);
|
| }
|
| +
|
| +void WorkerContext::databaseExceededQuota(const String&)
|
| +{
|
| +#if !PLATFORM(CHROMIUM)
|
| + // FIXME: This needs a real implementation; this is a temporary solution for testing.
|
| + const unsigned long long defaultQuota = 5 * 1024 * 1024;
|
| + DatabaseTracker::tracker().setQuota(securityOrigin(), defaultQuota);
|
| #endif
|
| +}
|
| +#endif
|
|
|
| bool WorkerContext::isContextThread() const
|
| {
|
|
|