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

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

Issue 1118963002: Revert of DevTools: remove dependency of most agents on InspectorPageAgent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 ec77f6ca8fc7354ed99d1373d4236609519aee60..9adca9274412bb96e9b9ce6474c03657ddbf4803 100644
--- a/Source/core/inspector/InspectorApplicationCacheAgent.h
+++ b/Source/core/inspector/InspectorApplicationCacheAgent.h
@@ -35,6 +35,7 @@
class LocalFrame;
class InspectorFrontend;
+class InspectorPageAgent;
typedef String ErrorString;
@@ -42,9 +43,9 @@
WTF_MAKE_NONCOPYABLE(InspectorApplicationCacheAgent);
WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(InspectorApplicationCacheAgent);
public:
- static PassOwnPtrWillBeRawPtr<InspectorApplicationCacheAgent> create(LocalFrame* inspectedFrame)
+ static PassOwnPtrWillBeRawPtr<InspectorApplicationCacheAgent> create(InspectorPageAgent* pageAgent)
{
- return adoptPtrWillBeNoop(new InspectorApplicationCacheAgent(inspectedFrame));
+ return adoptPtrWillBeNoop(new InspectorApplicationCacheAgent(pageAgent));
}
virtual ~InspectorApplicationCacheAgent() { }
DECLARE_VIRTUAL_TRACE();
@@ -64,14 +65,14 @@
virtual void getApplicationCacheForFrame(ErrorString*, const String& frameId, RefPtr<TypeBuilder::ApplicationCache::ApplicationCache>&) override;
private:
- explicit InspectorApplicationCacheAgent(LocalFrame*);
+ InspectorApplicationCacheAgent(InspectorPageAgent*);
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<LocalFrame> m_inspectedFrame;
+ RawPtrWillBeMember<InspectorPageAgent> m_pageAgent;
};
} // namespace blink
« no previous file with comments | « Source/core/inspector/InspectorAnimationAgent.cpp ('k') | Source/core/inspector/InspectorApplicationCacheAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698