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

Unified Diff: Source/core/loader/cache/MemoryCache.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/core/loader/WorkerThreadableLoader.cpp ('k') | Source/core/workers/DedicatedWorkerContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/cache/MemoryCache.cpp
diff --git a/Source/core/loader/cache/MemoryCache.cpp b/Source/core/loader/cache/MemoryCache.cpp
index 861c89830e896210581387bfc9bdd1dfc51a8b2c..873b7ce3a0d0922b1b69d394fa3a5176d6d590a2 100644
--- a/Source/core/loader/cache/MemoryCache.cpp
+++ b/Source/core/loader/cache/MemoryCache.cpp
@@ -35,7 +35,7 @@
#include "core/platform/Logging.h"
#include "core/platform/graphics/Image.h"
#include "core/platform/network/ResourceHandle.h"
-#include "core/workers/WorkerContext.h"
+#include "core/workers/WorkerGlobalScope.h"
#include "core/workers/WorkerLoaderProxy.h"
#include "core/workers/WorkerThread.h"
#include "weborigin/SecurityOrigin.h"
@@ -514,9 +514,9 @@ void MemoryCache::adjustSize(bool live, int delta)
void MemoryCache::removeURLFromCache(ScriptExecutionContext* context, const KURL& url)
{
- if (context->isWorkerContext()) {
- WorkerContext* workerContext = static_cast<WorkerContext*>(context);
- workerContext->thread()->workerLoaderProxy().postTaskToLoader(createCallbackTask(&removeURLFromCacheInternal, url));
+ if (context->isWorkerGlobalScope()) {
+ WorkerGlobalScope* workerGlobalScope = static_cast<WorkerGlobalScope*>(context);
+ workerGlobalScope->thread()->workerLoaderProxy().postTaskToLoader(createCallbackTask(&removeURLFromCacheInternal, url));
return;
}
removeURLFromCacheInternal(context, url);
« no previous file with comments | « Source/core/loader/WorkerThreadableLoader.cpp ('k') | Source/core/workers/DedicatedWorkerContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698