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

Unified Diff: Source/core/inspector/InspectorDOMAgent.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/InspectorCSSAgent.cpp ('k') | Source/core/inspector/InspectorDOMAgent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorDOMAgent.h
diff --git a/Source/core/inspector/InspectorDOMAgent.h b/Source/core/inspector/InspectorDOMAgent.h
index 88a866b810c7e257736db20dac68f5bcf7a252fe..4c0d3f8f6e9b49178665e63ad6954a0a66760f6c 100644
--- a/Source/core/inspector/InspectorDOMAgent.h
+++ b/Source/core/inspector/InspectorDOMAgent.h
@@ -60,6 +60,7 @@
class InspectorFrontend;
class InspectorHistory;
class InspectorOverlay;
+class InspectorPageAgent;
class Node;
class QualifiedName;
class PseudoElement;
@@ -85,9 +86,9 @@
virtual void didModifyDOMAttr(Element*) = 0;
};
- static PassOwnPtrWillBeRawPtr<InspectorDOMAgent> create(LocalFrame* inspectedFrame, InjectedScriptManager* injectedScriptManager, InspectorOverlay* overlay)
+ static PassOwnPtrWillBeRawPtr<InspectorDOMAgent> create(InspectorPageAgent* pageAgent, InjectedScriptManager* injectedScriptManager, InspectorOverlay* overlay)
{
- return adoptPtrWillBeNoop(new InspectorDOMAgent(inspectedFrame, injectedScriptManager, overlay));
+ return adoptPtrWillBeNoop(new InspectorDOMAgent(pageAgent, injectedScriptManager, overlay));
}
static String toErrorString(ExceptionState&);
@@ -205,7 +206,7 @@
private:
enum SearchMode { NotSearching, SearchingForNormal, SearchingForUAShadow };
- InspectorDOMAgent(LocalFrame*, InjectedScriptManager*, InspectorOverlay*);
+ InspectorDOMAgent(InspectorPageAgent*, InjectedScriptManager*, InspectorOverlay*);
void setDocument(Document*);
void innerEnable();
@@ -245,7 +246,7 @@
RawPtrWillBeMember<InspectorRevalidateDOMTask> revalidateTask();
- RawPtrWillBeMember<LocalFrame> m_inspectedFrame;
+ RawPtrWillBeMember<InspectorPageAgent> m_pageAgent;
RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager;
RawPtrWillBeMember<InspectorOverlay> m_overlay;
RawPtrWillBeMember<DOMListener> m_domListener;
« no previous file with comments | « Source/core/inspector/InspectorCSSAgent.cpp ('k') | Source/core/inspector/InspectorDOMAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698