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

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

Issue 1044203004: [Storage] Cache storage inspection on all the frames! (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: comments and rebase Created 5 years, 8 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/cachestorage/InspectorCacheStorageAgent.h
diff --git a/Source/modules/cachestorage/InspectorCacheStorageAgent.h b/Source/modules/cachestorage/InspectorCacheStorageAgent.h
index e3617bd4b198aec9f48308568ec2f149180dbe5f..6d31e8d05142f5395eb3be7ba10837507da7bf57 100644
--- a/Source/modules/cachestorage/InspectorCacheStorageAgent.h
+++ b/Source/modules/cachestorage/InspectorCacheStorageAgent.h
@@ -14,29 +14,25 @@ namespace blink {
typedef String ErrorString;
-class ServiceWorkerGlobalScope;
-
-class InspectorCacheStorageAgent final : public InspectorBaseAgent<InspectorCacheStorageAgent, InspectorFrontend::ServiceWorkerCache>, public InspectorBackendDispatcher::ServiceWorkerCacheCommandHandler {
+class InspectorCacheStorageAgent final : public InspectorBaseAgent<InspectorCacheStorageAgent, InspectorFrontend::CacheStorage>, public InspectorBackendDispatcher::CacheStorageCommandHandler {
WTF_MAKE_NONCOPYABLE(InspectorCacheStorageAgent);
public:
- static PassOwnPtrWillBeRawPtr<InspectorCacheStorageAgent> create(ServiceWorkerGlobalScope* workerGlobalScope)
+ static PassOwnPtrWillBeRawPtr<InspectorCacheStorageAgent> create()
{
- return adoptPtrWillBeNoop(new InspectorCacheStorageAgent(workerGlobalScope));
+ return adoptPtrWillBeNoop(new InspectorCacheStorageAgent());
}
virtual ~InspectorCacheStorageAgent();
DECLARE_VIRTUAL_TRACE();
- virtual void requestCacheNames(ErrorString*, PassRefPtrWillBeRawPtr<RequestCacheNamesCallback>) override;
- virtual void requestEntries(ErrorString*, const String& cacheName, int skipCount, int pageSize, PassRefPtrWillBeRawPtr<RequestEntriesCallback>) override;
- virtual void deleteCache(ErrorString*, const String& cacheName, PassRefPtrWillBeRawPtr<DeleteCacheCallback>) override;
+ virtual void requestCacheNames(ErrorString*, const String& securityOrigin, PassRefPtrWillBeRawPtr<RequestCacheNamesCallback>) override;
+ virtual void requestEntries(ErrorString*, const String& cacheId, int skipCount, int pageSize, PassRefPtrWillBeRawPtr<RequestEntriesCallback>) override;
+ virtual void deleteCache(ErrorString*, const String& cacheId, PassRefPtrWillBeRawPtr<DeleteCacheCallback>) override;
private:
- explicit InspectorCacheStorageAgent(ServiceWorkerGlobalScope*);
-
- ServiceWorkerGlobalScope* m_globalScope;
+ explicit InspectorCacheStorageAgent();
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698