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

Unified Diff: Source/core/inspector/InspectorApplicationCacheAgent.h

Issue 1092123004: DevTools: remove dependency of most agents on InspectorPageAgent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: further cuts on InspectorPageAgent inter-agents API 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/core/inspector/InspectorApplicationCacheAgent.h
diff --git a/Source/core/inspector/InspectorApplicationCacheAgent.h b/Source/core/inspector/InspectorApplicationCacheAgent.h
index 9adca9274412bb96e9b9ce6474c03657ddbf4803..8763b1aecd52378bc9b8178f0dff0e44cdae4b49 100644
--- a/Source/core/inspector/InspectorApplicationCacheAgent.h
+++ b/Source/core/inspector/InspectorApplicationCacheAgent.h
@@ -43,9 +43,9 @@ class InspectorApplicationCacheAgent final : public InspectorBaseAgent<Inspector
WTF_MAKE_NONCOPYABLE(InspectorApplicationCacheAgent);
WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(InspectorApplicationCacheAgent);
public:
- static PassOwnPtrWillBeRawPtr<InspectorApplicationCacheAgent> create(InspectorPageAgent* pageAgent)
+ static PassOwnPtrWillBeRawPtr<InspectorApplicationCacheAgent> create(LocalFrame* inspectedFrame)
{
- return adoptPtrWillBeNoop(new InspectorApplicationCacheAgent(pageAgent));
+ return adoptPtrWillBeNoop(new InspectorApplicationCacheAgent(inspectedFrame));
}
virtual ~InspectorApplicationCacheAgent() { }
DECLARE_VIRTUAL_TRACE();
@@ -65,14 +65,14 @@ public:
virtual void getApplicationCacheForFrame(ErrorString*, const String& frameId, RefPtr<TypeBuilder::ApplicationCache::ApplicationCache>&) override;
private:
- InspectorApplicationCacheAgent(InspectorPageAgent*);
+ explicit InspectorApplicationCacheAgent(LocalFrame*);
PassRefPtr<TypeBuilder::ApplicationCache::ApplicationCache> buildObjectForApplicationCache(const ApplicationCacheHost::ResourceInfoList&, const ApplicationCacheHost::CacheInfo&);
PassRefPtr<TypeBuilder::Array<TypeBuilder::ApplicationCache::ApplicationCacheResource> > buildArrayForApplicationCacheResources(const ApplicationCacheHost::ResourceInfoList&);
PassRefPtr<TypeBuilder::ApplicationCache::ApplicationCacheResource> buildObjectForApplicationCacheResource(const ApplicationCacheHost::ResourceInfo&);
DocumentLoader* assertFrameWithDocumentLoader(ErrorString*, String frameId);
- RawPtrWillBeMember<InspectorPageAgent> m_pageAgent;
+ RawPtrWillBeMember<LocalFrame> m_inspectedFrame;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698