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

Unified Diff: Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp

Issue 1051023002: Expose Cache Storage API in the global scope in stable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 9 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/serviceworkers/ServiceWorkerGlobalScope.cpp
diff --git a/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp b/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
index 29c044cb90b7a494db91995aad9055a689adddef..fff7d506ba11cd0fc1f93d864fdac45f748f1518 100644
--- a/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
+++ b/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
@@ -44,7 +44,6 @@
#include "core/workers/WorkerThreadStartupData.h"
#include "modules/EventTargetModules.h"
#include "modules/fetch/GlobalFetch.h"
-#include "modules/serviceworkers/CacheStorage.h"
#include "modules/serviceworkers/InspectorServiceWorkerCacheAgent.h"
#include "modules/serviceworkers/ServiceWorkerClients.h"
#include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h"
@@ -117,16 +116,6 @@ void ServiceWorkerGlobalScope::didEvaluateWorkerScript()
m_didEvaluateScript = true;
}
-CacheStorage* ServiceWorkerGlobalScope::caches(ExecutionContext* context)
-{
- if (!m_caches) {
- String identifier = createDatabaseIdentifierFromSecurityOrigin(context->securityOrigin());
- ASSERT(!identifier.isEmpty());
- m_caches = CacheStorage::create(Platform::current()->cacheStorage(identifier));
- }
- return m_caches;
-}
-
ScriptPromise ServiceWorkerGlobalScope::fetch(ScriptState* scriptState, const RequestInfo& input, const Dictionary& init, ExceptionState& exceptionState)
{
return GlobalFetch::fetch(scriptState, *this, input, init, exceptionState);
@@ -217,7 +206,6 @@ DEFINE_TRACE(ServiceWorkerGlobalScope)
{
visitor->trace(m_clients);
visitor->trace(m_registration);
- visitor->trace(m_caches);
WorkerGlobalScope::trace(visitor);
}
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerGlobalScope.h ('k') | Source/modules/serviceworkers/ServiceWorkerGlobalScope.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698