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

Unified Diff: Source/core/inspector/InspectorDOMAgent.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/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 4c0d3f8f6e9b49178665e63ad6954a0a66760f6c..88a866b810c7e257736db20dac68f5bcf7a252fe 100644
--- a/Source/core/inspector/InspectorDOMAgent.h
+++ b/Source/core/inspector/InspectorDOMAgent.h
@@ -60,7 +60,6 @@ class InsertionPoint;
class InspectorFrontend;
class InspectorHistory;
class InspectorOverlay;
-class InspectorPageAgent;
class Node;
class QualifiedName;
class PseudoElement;
@@ -86,9 +85,9 @@ public:
virtual void didModifyDOMAttr(Element*) = 0;
};
- static PassOwnPtrWillBeRawPtr<InspectorDOMAgent> create(InspectorPageAgent* pageAgent, InjectedScriptManager* injectedScriptManager, InspectorOverlay* overlay)
+ static PassOwnPtrWillBeRawPtr<InspectorDOMAgent> create(LocalFrame* inspectedFrame, InjectedScriptManager* injectedScriptManager, InspectorOverlay* overlay)
{
- return adoptPtrWillBeNoop(new InspectorDOMAgent(pageAgent, injectedScriptManager, overlay));
+ return adoptPtrWillBeNoop(new InspectorDOMAgent(inspectedFrame, injectedScriptManager, overlay));
}
static String toErrorString(ExceptionState&);
@@ -206,7 +205,7 @@ public:
private:
enum SearchMode { NotSearching, SearchingForNormal, SearchingForUAShadow };
- InspectorDOMAgent(InspectorPageAgent*, InjectedScriptManager*, InspectorOverlay*);
+ InspectorDOMAgent(LocalFrame*, InjectedScriptManager*, InspectorOverlay*);
void setDocument(Document*);
void innerEnable();
@@ -246,7 +245,7 @@ private:
RawPtrWillBeMember<InspectorRevalidateDOMTask> revalidateTask();
- RawPtrWillBeMember<InspectorPageAgent> m_pageAgent;
+ RawPtrWillBeMember<LocalFrame> m_inspectedFrame;
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