| Index: Source/modules/crypto/WorkerGlobalScopeCrypto.cpp
|
| diff --git a/Source/modules/crypto/WorkerContextCrypto.cpp b/Source/modules/crypto/WorkerGlobalScopeCrypto.cpp
|
| similarity index 72%
|
| rename from Source/modules/crypto/WorkerContextCrypto.cpp
|
| rename to Source/modules/crypto/WorkerGlobalScopeCrypto.cpp
|
| index 65b8322ef04007630bf2031b67c824a48a3b5a7f..cd7850a8dbacee05f29a2d48202f7a0f3f1f13bb 100644
|
| --- a/Source/modules/crypto/WorkerContextCrypto.cpp
|
| +++ b/Source/modules/crypto/WorkerGlobalScopeCrypto.cpp
|
| @@ -29,44 +29,44 @@
|
| */
|
|
|
| #include "config.h"
|
| -#include "modules/crypto/WorkerContextCrypto.h"
|
| +#include "modules/crypto/WorkerGlobalScopeCrypto.h"
|
|
|
| #include "core/dom/ScriptExecutionContext.h"
|
| #include "modules/crypto/WorkerCrypto.h"
|
|
|
| namespace WebCore {
|
|
|
| -WorkerContextCrypto::WorkerContextCrypto()
|
| +WorkerGlobalScopeCrypto::WorkerGlobalScopeCrypto()
|
| {
|
| }
|
|
|
| -WorkerContextCrypto::~WorkerContextCrypto()
|
| +WorkerGlobalScopeCrypto::~WorkerGlobalScopeCrypto()
|
| {
|
| }
|
|
|
| -const char* WorkerContextCrypto::supplementName()
|
| +const char* WorkerGlobalScopeCrypto::supplementName()
|
| {
|
| - return "WorkerContextCrypto";
|
| + return "WorkerGlobalScopeCrypto";
|
| }
|
|
|
| // static
|
| -WorkerContextCrypto* WorkerContextCrypto::from(ScriptExecutionContext* context)
|
| +WorkerGlobalScopeCrypto* WorkerGlobalScopeCrypto::from(ScriptExecutionContext* context)
|
| {
|
| - WorkerContextCrypto* supplement = static_cast<WorkerContextCrypto*>(Supplement<ScriptExecutionContext>::from(context, supplementName()));
|
| + WorkerGlobalScopeCrypto* supplement = static_cast<WorkerGlobalScopeCrypto*>(Supplement<ScriptExecutionContext>::from(context, supplementName()));
|
| if (!supplement) {
|
| - supplement = new WorkerContextCrypto();
|
| + supplement = new WorkerGlobalScopeCrypto();
|
| provideTo(context, supplementName(), adoptPtr(supplement));
|
| }
|
| return supplement;
|
| }
|
|
|
| // static
|
| -WorkerCrypto* WorkerContextCrypto::crypto(ScriptExecutionContext* context)
|
| +WorkerCrypto* WorkerGlobalScopeCrypto::crypto(ScriptExecutionContext* context)
|
| {
|
| - return WorkerContextCrypto::from(context)->crypto();
|
| + return WorkerGlobalScopeCrypto::from(context)->crypto();
|
| }
|
|
|
| -WorkerCrypto* WorkerContextCrypto::crypto() const
|
| +WorkerCrypto* WorkerGlobalScopeCrypto::crypto() const
|
| {
|
| if (!m_crypto)
|
| m_crypto = WorkerCrypto::create();
|
|
|