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

Unified Diff: content/renderer/devtools/devtools_agent.h

Issue 744653002: Ignore DevTools messages from the old inspected RVH after navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use WebContents instead of RVH when creating DTFH Created 6 years, 1 month 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: content/renderer/devtools/devtools_agent.h
diff --git a/content/renderer/devtools/devtools_agent.h b/content/renderer/devtools/devtools_agent.h
index dcb70c5f69272acf19235bb37cf1b7a55a2ce864..9e3bfb2f12793832296dcabd216e702b8703d677 100644
--- a/content/renderer/devtools/devtools_agent.h
+++ b/content/renderer/devtools/devtools_agent.h
@@ -13,7 +13,7 @@
#include "base/memory/weak_ptr.h"
#include "base/time/time.h"
#include "content/public/common/console_message_level.h"
-#include "content/public/renderer/render_view_observer.h"
+#include "content/public/renderer/render_frame_observer.h"
#include "third_party/WebKit/public/web/WebDevToolsAgentClient.h"
namespace blink {
@@ -23,17 +23,16 @@ class WebDevToolsAgent;
struct GpuTaskInfo;
namespace content {
-class RenderViewImpl;
// DevToolsAgent belongs to the inspectable RenderView and provides Glue's
// agents with the communication capabilities. All messages from/to Glue's
// agents infrastructure are flowing through this communication agent.
// There is a corresponding DevToolsClient object on the client side.
-class DevToolsAgent : public RenderViewObserver,
+class DevToolsAgent : public RenderFrameObserver,
public base::SupportsWeakPtr<DevToolsAgent>,
public blink::WebDevToolsAgentClient {
public:
- explicit DevToolsAgent(RenderViewImpl* render_view);
+ explicit DevToolsAgent(RenderFrame* main_render_frame);
~DevToolsAgent() override;
// Returns agent instance for its routing id.
@@ -103,6 +102,7 @@ class DevToolsAgent : public RenderViewObserver,
bool is_devtools_client_;
int32 gpu_route_id_;
bool paused_in_mouse_move_;
+ RenderFrame* main_render_frame_;
static base::subtle::AtomicWord /* TraceEventCallback */ event_callback_;

Powered by Google App Engine
This is Rietveld 408576698