Index: Source/modules/webdatabase/WorkerGlobalScopeWebDatabase.cpp |
diff --git a/Source/modules/webdatabase/WorkerContextWebDatabase.cpp b/Source/modules/webdatabase/WorkerGlobalScopeWebDatabase.cpp |
similarity index 85% |
rename from Source/modules/webdatabase/WorkerContextWebDatabase.cpp |
rename to Source/modules/webdatabase/WorkerGlobalScopeWebDatabase.cpp |
index 9d659b52c8812ae5770a45f1ca7165488bf52cae..b5cdb00d77a0d23191dc9258714516aa9ddd346d 100644 |
--- a/Source/modules/webdatabase/WorkerContextWebDatabase.cpp |
+++ b/Source/modules/webdatabase/WorkerGlobalScopeWebDatabase.cpp |
@@ -27,10 +27,10 @@ |
#include "config.h" |
-#include "modules/webdatabase/WorkerContextWebDatabase.h" |
+#include "modules/webdatabase/WorkerGlobalScopeWebDatabase.h" |
#include "RuntimeEnabledFeatures.h" |
-#include "core/workers/WorkerContext.h" |
+#include "core/workers/WorkerGlobalScope.h" |
#include "modules/webdatabase/Database.h" |
#include "modules/webdatabase/DatabaseCallback.h" |
#include "modules/webdatabase/DatabaseManager.h" |
@@ -39,7 +39,7 @@ |
namespace WebCore { |
-PassRefPtr<Database> WorkerContextWebDatabase::openDatabase(WorkerContext* context, const String& name, const String& version, const String& displayName, unsigned long estimatedSize, PassRefPtr<DatabaseCallback> creationCallback, ExceptionCode& ec) |
+PassRefPtr<Database> WorkerGlobalScopeWebDatabase::openDatabase(WorkerGlobalScope* context, const String& name, const String& version, const String& displayName, unsigned long estimatedSize, PassRefPtr<DatabaseCallback> creationCallback, ExceptionCode& ec) |
{ |
DatabaseManager& dbManager = DatabaseManager::manager(); |
RefPtr<Database> database; |
@@ -54,7 +54,7 @@ PassRefPtr<Database> WorkerContextWebDatabase::openDatabase(WorkerContext* conte |
return database.release(); |
} |
-PassRefPtr<DatabaseSync> WorkerContextWebDatabase::openDatabaseSync(WorkerContext* context, const String& name, const String& version, const String& displayName, unsigned long estimatedSize, PassRefPtr<DatabaseCallback> creationCallback, ExceptionCode& ec) |
+PassRefPtr<DatabaseSync> WorkerGlobalScopeWebDatabase::openDatabaseSync(WorkerGlobalScope* context, const String& name, const String& version, const String& displayName, unsigned long estimatedSize, PassRefPtr<DatabaseCallback> creationCallback, ExceptionCode& ec) |
{ |
DatabaseManager& dbManager = DatabaseManager::manager(); |
RefPtr<DatabaseSync> database; |