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

Unified Diff: Source/modules/cachestorage/InspectorCacheStorageAgent.cpp

Issue 1055543004: Move Cache Storage API implementation to modules/cachestorage (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
« no previous file with comments | « Source/modules/cachestorage/InspectorCacheStorageAgent.h ('k') | Source/modules/cachestorage/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/cachestorage/InspectorCacheStorageAgent.cpp
diff --git a/Source/modules/serviceworkers/InspectorServiceWorkerCacheAgent.cpp b/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp
similarity index 91%
rename from Source/modules/serviceworkers/InspectorServiceWorkerCacheAgent.cpp
rename to Source/modules/cachestorage/InspectorCacheStorageAgent.cpp
index f05db4438ca3e496554b4c3414bb883a95de6c5d..61899800186c60f29cfcda7a8121e926331dd769 100644
--- a/Source/modules/serviceworkers/InspectorServiceWorkerCacheAgent.cpp
+++ b/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp
@@ -3,12 +3,11 @@
// found in the LICENSE file.
#include "config.h"
-#include "modules/serviceworkers/InspectorServiceWorkerCacheAgent.h"
+#include "modules/cachestorage/InspectorCacheStorageAgent.h"
#include "core/InspectorBackendDispatcher.h"
#include "core/InspectorTypeBuilder.h"
#include "modules/serviceworkers/ServiceWorkerGlobalScope.h"
-#include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h"
#include "platform/JSONValues.h"
#include "platform/heap/Handle.h"
#include "platform/weborigin/DatabaseIdentifier.h"
@@ -290,20 +289,20 @@ private:
} // namespace
-InspectorServiceWorkerCacheAgent::InspectorServiceWorkerCacheAgent(ServiceWorkerGlobalScope* scope)
- : InspectorBaseAgent<blink::InspectorServiceWorkerCacheAgent, InspectorFrontend::ServiceWorkerCache>("ServiceWorkerCache")
+InspectorCacheStorageAgent::InspectorCacheStorageAgent(ServiceWorkerGlobalScope* scope)
+ : InspectorBaseAgent<blink::InspectorCacheStorageAgent, InspectorFrontend::ServiceWorkerCache>("ServiceWorkerCache")
, m_globalScope(scope)
{
}
-InspectorServiceWorkerCacheAgent::~InspectorServiceWorkerCacheAgent() { }
+InspectorCacheStorageAgent::~InspectorCacheStorageAgent() { }
-DEFINE_TRACE(InspectorServiceWorkerCacheAgent)
+DEFINE_TRACE(InspectorCacheStorageAgent)
{
InspectorBaseAgent::trace(visitor);
}
-void InspectorServiceWorkerCacheAgent::requestCacheNames(ErrorString* errorString, PassRefPtrWillBeRawPtr<RequestCacheNamesCallback> callback)
+void InspectorCacheStorageAgent::requestCacheNames(ErrorString* errorString, PassRefPtrWillBeRawPtr<RequestCacheNamesCallback> callback)
{
OwnPtr<WebServiceWorkerCacheStorage> cache = assertCacheStorage(errorString, m_globalScope);
if (!cache) {
@@ -314,7 +313,7 @@ void InspectorServiceWorkerCacheAgent::requestCacheNames(ErrorString* errorStrin
}
-void InspectorServiceWorkerCacheAgent::requestEntries(ErrorString* errorString, const String& cacheName, int skipCount, int pageSize, PassRefPtrWillBeRawPtr<RequestEntriesCallback> callback)
+void InspectorCacheStorageAgent::requestEntries(ErrorString* errorString, const String& cacheName, int skipCount, int pageSize, PassRefPtrWillBeRawPtr<RequestEntriesCallback> callback)
{
OwnPtr<WebServiceWorkerCacheStorage> cache = assertCacheStorage(errorString, m_globalScope);
if (!cache) {
@@ -328,7 +327,7 @@ void InspectorServiceWorkerCacheAgent::requestEntries(ErrorString* errorString,
cache->dispatchOpen(new GetCacheForRequestData(params, callback), WebString(cacheName));
}
-void InspectorServiceWorkerCacheAgent::deleteCache(ErrorString* errorString, const String& cacheName, PassRefPtrWillBeRawPtr<DeleteCacheCallback> callback)
+void InspectorCacheStorageAgent::deleteCache(ErrorString* errorString, const String& cacheName, PassRefPtrWillBeRawPtr<DeleteCacheCallback> callback)
{
OwnPtr<WebServiceWorkerCacheStorage> cache = assertCacheStorage(errorString, m_globalScope);
if (!cache) {
« no previous file with comments | « Source/modules/cachestorage/InspectorCacheStorageAgent.h ('k') | Source/modules/cachestorage/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698