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

Unified Diff: Source/modules/serviceworkers/InspectorServiceWorkerCacheAgent.h

Issue 1044203004: [Storage] Cache storage inspection on all the frames! (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/InspectorServiceWorkerCacheAgent.h
diff --git a/Source/modules/serviceworkers/InspectorServiceWorkerCacheAgent.h b/Source/modules/serviceworkers/InspectorServiceWorkerCacheAgent.h
index 5ee748016c2b8026d2418ed9889ad97d51c07051..7eeb838cefe3c9ddc877652426def7f9df39e849 100644
--- a/Source/modules/serviceworkers/InspectorServiceWorkerCacheAgent.h
+++ b/Source/modules/serviceworkers/InspectorServiceWorkerCacheAgent.h
@@ -12,31 +12,33 @@
namespace blink {
+class Page;
typedef String ErrorString;
class ServiceWorkerGlobalScope;
-class InspectorServiceWorkerCacheAgent final : public InspectorBaseAgent<InspectorServiceWorkerCacheAgent, InspectorFrontend::ServiceWorkerCache>, public InspectorBackendDispatcher::ServiceWorkerCacheCommandHandler {
+// TODO(dmurph): rename to InspectorCacheStorageAgent
+class InspectorServiceWorkerCacheAgent final : public InspectorBaseAgent<InspectorServiceWorkerCacheAgent, InspectorFrontend::CacheStorage>, public InspectorBackendDispatcher::CacheStorageCommandHandler {
WTF_MAKE_NONCOPYABLE(InspectorServiceWorkerCacheAgent);
public:
- static PassOwnPtrWillBeRawPtr<InspectorServiceWorkerCacheAgent> create(ServiceWorkerGlobalScope* workerGlobalScope)
+ static PassOwnPtrWillBeRawPtr<InspectorServiceWorkerCacheAgent> create(Page* page)
{
- return adoptPtrWillBeNoop(new InspectorServiceWorkerCacheAgent(workerGlobalScope));
+ return adoptPtrWillBeNoop(new InspectorServiceWorkerCacheAgent(page));
}
virtual ~InspectorServiceWorkerCacheAgent();
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& securityOrigin, const String& cacheName, int skipCount, int pageSize, PassRefPtrWillBeRawPtr<RequestEntriesCallback>) override;
+ virtual void deleteCache(ErrorString*, const String& securityOrigin, const String& cacheName, PassRefPtrWillBeRawPtr<DeleteCacheCallback>) override;
private:
- explicit InspectorServiceWorkerCacheAgent(ServiceWorkerGlobalScope*);
+ explicit InspectorServiceWorkerCacheAgent(Page*);
- ServiceWorkerGlobalScope* m_globalScope;
+ RawPtrWillBeMember<Page> m_page;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698