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

Unified Diff: Source/modules/indexeddb/WorkerGlobalScopeIndexedDatabase.cpp

Issue 17648006: Rename WorkerContext to WorkerGlobalScope (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 6 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
Index: Source/modules/indexeddb/WorkerGlobalScopeIndexedDatabase.cpp
diff --git a/Source/modules/indexeddb/WorkerContextIndexedDatabase.cpp b/Source/modules/indexeddb/WorkerGlobalScopeIndexedDatabase.cpp
similarity index 71%
rename from Source/modules/indexeddb/WorkerContextIndexedDatabase.cpp
rename to Source/modules/indexeddb/WorkerGlobalScopeIndexedDatabase.cpp
index a6093cd6036276c530764ca6b26a4a8a7e800432..c75a981dd0b79e3b0949f6f8deb16d383992c7e8 100644
--- a/Source/modules/indexeddb/WorkerContextIndexedDatabase.cpp
+++ b/Source/modules/indexeddb/WorkerGlobalScopeIndexedDatabase.cpp
@@ -27,7 +27,7 @@
#include "config.h"
-#include "modules/indexeddb/WorkerContextIndexedDatabase.h"
+#include "modules/indexeddb/WorkerGlobalScopeIndexedDatabase.h"
#include "core/dom/ScriptExecutionContext.h"
#include "modules/indexeddb/IDBFactory.h"
@@ -35,35 +35,35 @@
namespace WebCore {
-WorkerContextIndexedDatabase::WorkerContextIndexedDatabase()
+WorkerGlobalScopeIndexedDatabase::WorkerGlobalScopeIndexedDatabase()
{
}
-WorkerContextIndexedDatabase::~WorkerContextIndexedDatabase()
+WorkerGlobalScopeIndexedDatabase::~WorkerGlobalScopeIndexedDatabase()
{
}
-const char* WorkerContextIndexedDatabase::supplementName()
+const char* WorkerGlobalScopeIndexedDatabase::supplementName()
{
- return "WorkerContextIndexedDatabase";
+ return "WorkerGlobalScopeIndexedDatabase";
}
-WorkerContextIndexedDatabase* WorkerContextIndexedDatabase::from(ScriptExecutionContext* context)
+WorkerGlobalScopeIndexedDatabase* WorkerGlobalScopeIndexedDatabase::from(ScriptExecutionContext* context)
{
- WorkerContextIndexedDatabase* supplement = static_cast<WorkerContextIndexedDatabase*>(Supplement<ScriptExecutionContext>::from(context, supplementName()));
+ WorkerGlobalScopeIndexedDatabase* supplement = static_cast<WorkerGlobalScopeIndexedDatabase*>(Supplement<ScriptExecutionContext>::from(context, supplementName()));
if (!supplement) {
- supplement = new WorkerContextIndexedDatabase();
+ supplement = new WorkerGlobalScopeIndexedDatabase();
provideTo(context, supplementName(), adoptPtr(supplement));
}
return supplement;
}
-IDBFactory* WorkerContextIndexedDatabase::indexedDB(ScriptExecutionContext* context)
+IDBFactory* WorkerGlobalScopeIndexedDatabase::indexedDB(ScriptExecutionContext* context)
{
return from(context)->indexedDB();
}
-IDBFactory* WorkerContextIndexedDatabase::indexedDB()
+IDBFactory* WorkerGlobalScopeIndexedDatabase::indexedDB()
{
if (!m_factoryBackend)
m_factoryBackend = IDBFactoryBackendInterface::create();

Powered by Google App Engine
This is Rietveld 408576698