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

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

Issue 1092123004: DevTools: remove dependency of most agents on InspectorPageAgent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed debug build 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 4853e0fb4f0a65ef22d061bd77e7fc7de7f75025..cc67edc94dea7eae516dc649ce0d9fe0376a8d01 100644
--- a/Source/core/inspector/InspectorResourceAgent.h
+++ b/Source/core/inspector/InspectorResourceAgent.h
@@ -50,7 +50,6 @@ class FormData;
class LocalFrame;
class HTTPHeaderMap;
class InspectorFrontend;
-class InspectorPageAgent;
class JSONObject;
class KURL;
class NetworkResourcesData;
@@ -69,9 +68,9 @@ typedef String ErrorString;
class InspectorResourceAgent final : public InspectorBaseAgent<InspectorResourceAgent, InspectorFrontend::Network>, public InspectorBackendDispatcher::NetworkCommandHandler {
public:
- static PassOwnPtrWillBeRawPtr<InspectorResourceAgent> create(InspectorPageAgent* pageAgent)
+ static PassOwnPtrWillBeRawPtr<InspectorResourceAgent> create(LocalFrame* inspectedFrame)
{
- return adoptPtrWillBeNoop(new InspectorResourceAgent(pageAgent));
+ return adoptPtrWillBeNoop(new InspectorResourceAgent(inspectedFrame));
}
void disable(ErrorString*) override;
@@ -145,7 +144,7 @@ public:
bool fetchResourceContent(Document*, const KURL&, String* content, bool* base64Encoded);
private:
- explicit InspectorResourceAgent(InspectorPageAgent*);
+ explicit InspectorResourceAgent(LocalFrame*);
void enable();
void delayedRemoveReplayXHR(XMLHttpRequest*);
@@ -153,7 +152,7 @@ private:
bool getResponseBodyBlob(const String& requestId, PassRefPtrWillBeRawPtr<GetResponseBodyCallback>);
- RawPtrWillBeMember<InspectorPageAgent> m_pageAgent;
+ RawPtrWillBeMember<LocalFrame> m_inspectedFrame;
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