| Index: Source/core/inspector/InspectorApplicationCacheAgent.cpp
|
| diff --git a/Source/core/inspector/InspectorApplicationCacheAgent.cpp b/Source/core/inspector/InspectorApplicationCacheAgent.cpp
|
| index 608b7bfe5d567e3ad12e965a455041ed84b5beef..73672ca9e707d1ff55a7012fd1675be9794ec6bc 100644
|
| --- a/Source/core/inspector/InspectorApplicationCacheAgent.cpp
|
| +++ b/Source/core/inspector/InspectorApplicationCacheAgent.cpp
|
| @@ -42,13 +42,22 @@ namespace ApplicationCacheAgentState {
|
| static const char applicationCacheAgentEnabled[] = "applicationCacheAgentEnabled";
|
| }
|
|
|
| -InspectorApplicationCacheAgent::InspectorApplicationCacheAgent(InstrumentingAgents* instrumentingAgents, InspectorCompositeState* state, InspectorPageAgent* pageAgent)
|
| - : InspectorBaseAgent<InspectorApplicationCacheAgent>("ApplicationCache", instrumentingAgents, state)
|
| +PassRefPtr<InspectorApplicationCacheAgent> InspectorApplicationCacheAgent::create(InstrumentingAgents* instrumentingAgents, InspectorState* state, PassRefPtr<InspectorPageAgent> pageAgent)
|
| +{
|
| + return adoptRef(new InspectorApplicationCacheAgent(instrumentingAgents, state, pageAgent));
|
| +}
|
| +
|
| +InspectorApplicationCacheAgent::InspectorApplicationCacheAgent(InstrumentingAgents* instrumentingAgents, InspectorState* state, PassRefPtr<InspectorPageAgent> pageAgent)
|
| + : InspectorBaseAgent(instrumentingAgents, state)
|
| , m_pageAgent(pageAgent)
|
| , m_frontend(0)
|
| {
|
| }
|
|
|
| +InspectorApplicationCacheAgent::~InspectorApplicationCacheAgent()
|
| +{
|
| +}
|
| +
|
| void InspectorApplicationCacheAgent::setFrontend(InspectorFrontend* frontend)
|
| {
|
| m_frontend = frontend->applicationcache();
|
| @@ -202,5 +211,11 @@ PassRefPtr<TypeBuilder::ApplicationCache::ApplicationCacheResource> InspectorApp
|
| return value;
|
| }
|
|
|
| +InspectorApplicationCacheController::InspectorApplicationCacheController(InstrumentingAgents* instrumentingAgents, InspectorCompositeState* compositeState, InspectorPageController* pageController)
|
| + : InspectorBaseController<InspectorApplicationCacheController, InspectorApplicationCacheAgent>("ApplicationCache", instrumentingAgents, compositeState)
|
| +{
|
| + setAgent(InspectorApplicationCacheAgent::create(m_instrumentingAgents, m_state, pageController->getAgent()));
|
| +}
|
| +
|
| } // namespace WebCore
|
|
|
|
|