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

Unified Diff: Source/modules/crypto/WorkerGlobalScopeCrypto.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
« no previous file with comments | « Source/modules/crypto/WorkerGlobalScopeCrypto.h ('k') | Source/modules/crypto/WorkerGlobalScopeCrypto.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « Source/modules/crypto/WorkerGlobalScopeCrypto.h ('k') | Source/modules/crypto/WorkerGlobalScopeCrypto.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698