summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/renderer/devtools_agent.cc7
-rw-r--r--chrome/renderer/devtools_agent.h2
-rw-r--r--chrome/renderer/render_view.cc3
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);