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

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

Issue 898593002: DevTools: use per-LocalFrame instrumenting agents instead of per-Page ones. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed assertion Created 5 years, 11 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/InspectorLayerTreeAgent.h
diff --git a/Source/core/inspector/InspectorLayerTreeAgent.h b/Source/core/inspector/InspectorLayerTreeAgent.h
index 39695c63d2e303f45150eaeb3933dbbc56d2cb94..d656b1b4979f923e02be36b4171a520ad659fc2c 100644
--- a/Source/core/inspector/InspectorLayerTreeAgent.h
+++ b/Source/core/inspector/InspectorLayerTreeAgent.h
@@ -42,17 +42,17 @@
namespace blink {
+class InspectorPageAgent;
class PictureSnapshot;
-class Page;
class RenderLayerCompositor;
typedef String ErrorString;
class InspectorLayerTreeAgent final : public InspectorBaseAgent<InspectorLayerTreeAgent>, public InspectorBackendDispatcher::LayerTreeCommandHandler {
public:
- static PassOwnPtrWillBeRawPtr<InspectorLayerTreeAgent> create(Page* page)
+ static PassOwnPtrWillBeRawPtr<InspectorLayerTreeAgent> create(InspectorPageAgent* pageAgent)
{
- return adoptPtrWillBeNoop(new InspectorLayerTreeAgent(page));
+ return adoptPtrWillBeNoop(new InspectorLayerTreeAgent(pageAgent));
}
virtual ~InspectorLayerTreeAgent();
virtual void trace(Visitor*) override;
@@ -86,7 +86,7 @@ public:
private:
static unsigned s_lastSnapshotId;
- explicit InspectorLayerTreeAgent(Page*);
+ explicit InspectorLayerTreeAgent(InspectorPageAgent*);
GraphicsLayer* rootGraphicsLayer();
@@ -100,7 +100,7 @@ private:
int idForNode(Node*);
InspectorFrontend::LayerTree* m_frontend;
- RawPtrWillBeMember<Page> m_page;
+ RawPtrWillBeMember<InspectorPageAgent> m_pageAgent;
Vector<int, 2> m_pageOverlayLayerIds;
typedef HashMap<String, RefPtr<PictureSnapshot> > SnapshotById;
« no previous file with comments | « Source/core/inspector/InspectorInstrumentationCustomInl.h ('k') | Source/core/inspector/InspectorLayerTreeAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698