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

Unified Diff: Source/core/inspector/InspectorResourceAgent.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
« no previous file with comments | « Source/core/inspector/InspectorResolver.cpp ('k') | Source/core/inspector/InspectorResourceAgent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorResourceAgent.h
diff --git a/Source/core/inspector/InspectorResourceAgent.h b/Source/core/inspector/InspectorResourceAgent.h
index cc67edc94dea7eae516dc649ce0d9fe0376a8d01..4853e0fb4f0a65ef22d061bd77e7fc7de7f75025 100644
--- a/Source/core/inspector/InspectorResourceAgent.h
+++ b/Source/core/inspector/InspectorResourceAgent.h
@@ -50,6 +50,7 @@
class LocalFrame;
class HTTPHeaderMap;
class InspectorFrontend;
+class InspectorPageAgent;
class JSONObject;
class KURL;
class NetworkResourcesData;
@@ -68,9 +69,9 @@
class InspectorResourceAgent final : public InspectorBaseAgent<InspectorResourceAgent, InspectorFrontend::Network>, public InspectorBackendDispatcher::NetworkCommandHandler {
public:
- static PassOwnPtrWillBeRawPtr<InspectorResourceAgent> create(LocalFrame* inspectedFrame)
+ static PassOwnPtrWillBeRawPtr<InspectorResourceAgent> create(InspectorPageAgent* pageAgent)
{
- return adoptPtrWillBeNoop(new InspectorResourceAgent(inspectedFrame));
+ return adoptPtrWillBeNoop(new InspectorResourceAgent(pageAgent));
}
void disable(ErrorString*) override;
@@ -144,7 +145,7 @@
bool fetchResourceContent(Document*, const KURL&, String* content, bool* base64Encoded);
private:
- explicit InspectorResourceAgent(LocalFrame*);
+ explicit InspectorResourceAgent(InspectorPageAgent*);
void enable();
void delayedRemoveReplayXHR(XMLHttpRequest*);
@@ -152,7 +153,7 @@
bool getResponseBodyBlob(const String& requestId, PassRefPtrWillBeRawPtr<GetResponseBodyCallback>);
- RawPtrWillBeMember<LocalFrame> m_inspectedFrame;
+ RawPtrWillBeMember<InspectorPageAgent> m_pageAgent;
String m_userAgentOverride;
String m_hostId;
OwnPtr<NetworkResourcesData> m_resourcesData;
« no previous file with comments | « Source/core/inspector/InspectorResolver.cpp ('k') | Source/core/inspector/InspectorResourceAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698