summaryrefslogtreecommitdiffstats
path: root/WebCore/inspector/InspectorApplicationCacheAgent.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/inspector/InspectorApplicationCacheAgent.h')
-rw-r--r--WebCore/inspector/InspectorApplicationCacheAgent.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/WebCore/inspector/InspectorApplicationCacheAgent.h b/WebCore/inspector/InspectorApplicationCacheAgent.h
index 33cc2ed..3338f84 100644
--- a/WebCore/inspector/InspectorApplicationCacheAgent.h
+++ b/WebCore/inspector/InspectorApplicationCacheAgent.h
@@ -29,18 +29,20 @@
#include "ApplicationCacheHost.h"
#include <wtf/Noncopyable.h>
+#include <wtf/PassRefPtr.h>
namespace WebCore {
+class InspectorArray;
class InspectorController;
-class InspectorFrontend;
+class InspectorObject;
+class InspectorValue;
+class RemoteInspectorFrontend;
class ResourceResponse;
-class ScriptArray;
-class ScriptObject;
class InspectorApplicationCacheAgent : public Noncopyable {
public:
- InspectorApplicationCacheAgent(InspectorController* inspectorController, InspectorFrontend* frontend);
+ InspectorApplicationCacheAgent(InspectorController* inspectorController, RemoteInspectorFrontend* frontend);
~InspectorApplicationCacheAgent() { }
// Backend to Frontend
@@ -49,15 +51,15 @@ public:
void updateNetworkState(bool isNowOnline);
// From Frontend
- void getApplicationCaches(long callId);
+ void getApplicationCaches(RefPtr<InspectorValue>* applicationCaches);
private:
- ScriptObject buildObjectForApplicationCache(const ApplicationCacheHost::ResourceInfoList&, const ApplicationCacheHost::CacheInfo&);
- ScriptArray buildArrayForApplicationCacheResources(const ApplicationCacheHost::ResourceInfoList&);
- ScriptObject buildObjectForApplicationCacheResource(const ApplicationCacheHost::ResourceInfo&);
+ PassRefPtr<InspectorObject> buildObjectForApplicationCache(const ApplicationCacheHost::ResourceInfoList&, const ApplicationCacheHost::CacheInfo&);
+ PassRefPtr<InspectorArray> buildArrayForApplicationCacheResources(const ApplicationCacheHost::ResourceInfoList&);
+ PassRefPtr<InspectorObject> buildObjectForApplicationCacheResource(const ApplicationCacheHost::ResourceInfo&);
InspectorController* m_inspectorController;
- InspectorFrontend* m_frontend;
+ RemoteInspectorFrontend* m_frontend;
};
} // namespace WebCore