diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-13 14:20:15 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-13 14:20:15 +0000 |
commit | 8c785c6f0110c9109af284db78156b0b0998a5b5 (patch) | |
tree | e4aeae8234a51c30d5309e9af5d738b9d6bc957b /chrome | |
parent | 3061ccf369ee2642d4d18ac396b6758acebc3509 (diff) | |
download | chromium_src-8c785c6f0110c9109af284db78156b0b0998a5b5.zip chromium_src-8c785c6f0110c9109af284db78156b0b0998a5b5.tar.gz chromium_src-8c785c6f0110c9109af284db78156b0b0998a5b5.tar.bz2 |
DevTools: allow reload while on a breakpoint: detach agent on navigation attempt.
BUG=16606
Review URL: http://codereview.chromium.org/149529
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20480 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/renderer/devtools_agent.cc | 7 | ||||
-rw-r--r-- | chrome/renderer/devtools_agent.h | 2 | ||||
-rw-r--r-- | chrome/renderer/render_view.cc | 3 |
3 files changed, 12 insertions, 0 deletions
diff --git a/chrome/renderer/devtools_agent.cc b/chrome/renderer/devtools_agent.cc index 00bb750..aef7125 100644 --- a/chrome/renderer/devtools_agent.cc +++ b/chrome/renderer/devtools_agent.cc @@ -22,6 +22,13 @@ DevToolsAgent::~DevToolsAgent() { agent_for_routing_id_.erase(routing_id_); } +void DevToolsAgent::OnNavigate() { + WebDevToolsAgent* web_agent = GetWebAgent(); + if (web_agent) { + web_agent->OnNavigate(); + } +} + // Called on the Renderer thread. bool DevToolsAgent::OnMessageReceived(const IPC::Message& message) { bool handled = true; diff --git a/chrome/renderer/devtools_agent.h b/chrome/renderer/devtools_agent.h index f7e59d9e..985d677 100644 --- a/chrome/renderer/devtools_agent.h +++ b/chrome/renderer/devtools_agent.h @@ -26,6 +26,8 @@ class DevToolsAgent : public WebDevToolsAgentDelegate { DevToolsAgent(int routing_id, RenderView* view); virtual ~DevToolsAgent(); + void OnNavigate(); + // IPC message interceptor. Called on the Render thread. virtual bool OnMessageReceived(const IPC::Message& message); diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc index 7bd7c28..abe0cde 100644 --- a/chrome/renderer/render_view.cc +++ b/chrome/renderer/render_view.cc @@ -635,6 +635,9 @@ void RenderView::OnNavigate(const ViewMsg_Navigate_Params& params) { if (!webview()) return; + if (devtools_agent_.get()) + devtools_agent_->OnNavigate(); + child_process_logging::ScopedActiveURLSetter url_setter(params.url); AboutHandler::MaybeHandle(params.url); |