Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3522)

Unified Diff: WebCore/workers/WorkerContext.cpp

Issue 602013: Implement Web Worker access to the SQL database. (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/
Patch Set: '' Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « WebCore/workers/WorkerContext.h ('k') | WebCore/workers/WorkerContext.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
{
« no previous file with comments | « WebCore/workers/WorkerContext.h ('k') | WebCore/workers/WorkerContext.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698