[DevTools] Move DevToolsAgent to RenderFrameImpl.
BUG=451004
Review URL: https://codereview.chromium.org/1023783004
Cr-Commit-Position: refs/heads/master@{#322382}
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index 4f93aad..0494da6 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -74,6 +74,7 @@
class ChildFrameCompositingHelper;
class CompositorDependencies;
+class DevToolsAgent;
class DocumentState;
class ExternalPopupMenu;
class GeolocationDispatcher;
@@ -755,6 +756,10 @@
// case of the main frame, but not subframes).
blink::WebLocalFrame* frame_;
+ // Frame is a local root if it is rendered in a process different than parent
+ // or it is a main frame.
+ bool is_local_root_;
+
base::WeakPtr<RenderViewImpl> render_view_;
int routing_id_;
bool is_swapped_out_;
@@ -867,6 +872,10 @@
bool contains_media_player_;
#endif
+ // The devtools agent for this frame; only created for main frame and
+ // local roots.
+ DevToolsAgent* devtools_agent_;
+
// The geolocation dispatcher attached to this frame, lazily initialized.
GeolocationDispatcher* geolocation_dispatcher_;