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

Unified Diff: chrome/renderer/dev_tools_agent.h

Issue 39182: DevToolsAgent crash fixed: reset RenderView when it's destroyed (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 | « no previous file | chrome/renderer/dev_tools_agent.cc » ('j') | chrome/renderer/dev_tools_agent.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/dev_tools_agent.h
===================================================================
--- chrome/renderer/dev_tools_agent.h (revision 10976)
+++ chrome/renderer/dev_tools_agent.h (working copy)
@@ -28,6 +28,10 @@
explicit DevToolsAgent(RenderView* view, MessageLoop* view_loop);
virtual ~DevToolsAgent();
+ // DevToolsAgent is created by RenderView which is supposed to call this
+ // method from its destructor.
+ void RenderViewDestroyed();
+
private:
// Sends message to DevToolsClient. May be called on any thread.
void Send(const IPC::Message& tools_client_message);
@@ -56,6 +60,7 @@
scoped_refptr<DebuggerBridge> debugger_;
+ int routing_id_; // View routing id that we can access from IO thread.
Dean McNamee 2009/03/05 11:43:29 This is a style violation, two spaces before //
RenderView* view_;
MessageLoop* view_loop_;
« no previous file with comments | « no previous file | chrome/renderer/dev_tools_agent.cc » ('j') | chrome/renderer/dev_tools_agent.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698