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

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

Issue 445023005: DevTools: reduce ResourceAgent dependency on PageAgent. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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/InspectorResourceAgent.h
diff --git a/Source/core/inspector/InspectorResourceAgent.h b/Source/core/inspector/InspectorResourceAgent.h
index 544de3105ec7c7dfe6acdfea971945700f97d987..ceaf62f01a1298a5f77a647a938e1df86ae42b6c 100644
--- a/Source/core/inspector/InspectorResourceAgent.h
+++ b/Source/core/inspector/InspectorResourceAgent.h
@@ -49,6 +49,7 @@ class Resource;
struct FetchInitiatorInfo;
class Document;
class DocumentLoader;
+class EditedResourcesContentManager;
class FormData;
class LocalFrame;
class HTTPHeaderMap;
@@ -74,9 +75,9 @@ typedef String ErrorString;
class InspectorResourceAgent FINAL : public InspectorBaseAgent<InspectorResourceAgent>, public InspectorBackendDispatcher::NetworkCommandHandler {
public:
- static PassOwnPtrWillBeRawPtr<InspectorResourceAgent> create(InspectorPageAgent* pageAgent)
+ static PassOwnPtrWillBeRawPtr<InspectorResourceAgent> create(InspectorPageAgent* pageAgent, EditedResourcesContentManager* editedResourcesContentManager)
{
- return adoptPtrWillBeNoop(new InspectorResourceAgent(pageAgent));
+ return adoptPtrWillBeNoop(new InspectorResourceAgent(pageAgent, editedResourcesContentManager));
}
virtual void setFrontend(InspectorFrontend*) OVERRIDE;
@@ -149,13 +150,14 @@ public:
bool fetchResourceContent(Document*, const KURL&, String* content, bool* base64Encoded);
private:
- explicit InspectorResourceAgent(InspectorPageAgent*);
+ InspectorResourceAgent(InspectorPageAgent*, EditedResourcesContentManager*);
void enable();
void delayedRemoveReplayXHR(XMLHttpRequest*);
void removeFinishedReplayXHRFired(Timer<InspectorResourceAgent>*);
RawPtrWillBeMember<InspectorPageAgent> m_pageAgent;
+ RawPtrWillBeMember<EditedResourcesContentManager> m_editedResourcesContentManager;
InspectorFrontend::Network* m_frontend;
String m_userAgentOverride;
String m_hostId;

Powered by Google App Engine
This is Rietveld 408576698