| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/renderer/devtools_agent.h" | 5 #include "chrome/renderer/devtools_agent.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "chrome/common/chrome_switches.h" | 10 #include "chrome/common/chrome_switches.h" |
| 11 #include "chrome/common/devtools_messages.h" |
| 11 #include "chrome/common/render_messages.h" | 12 #include "chrome/common/render_messages.h" |
| 12 #include "chrome/renderer/devtools_agent_filter.h" | 13 #include "chrome/renderer/devtools_agent_filter.h" |
| 13 #include "chrome/renderer/render_view.h" | 14 #include "chrome/renderer/render_view.h" |
| 14 #include "grit/webkit_chromium_resources.h" | 15 #include "grit/webkit_chromium_resources.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h" |
| 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPoint.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPoint.h" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
| 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 19 #include "webkit/glue/webkit_glue.h" | 20 #include "webkit/glue/webkit_glue.h" |
| 20 | 21 |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 web_agent->didNavigate(); | 192 web_agent->didNavigate(); |
| 192 } | 193 } |
| 193 } | 194 } |
| 194 | 195 |
| 195 WebDevToolsAgent* DevToolsAgent::GetWebAgent() { | 196 WebDevToolsAgent* DevToolsAgent::GetWebAgent() { |
| 196 WebView* web_view = render_view()->webview(); | 197 WebView* web_view = render_view()->webview(); |
| 197 if (!web_view) | 198 if (!web_view) |
| 198 return NULL; | 199 return NULL; |
| 199 return web_view->devToolsAgent(); | 200 return web_view->devToolsAgent(); |
| 200 } | 201 } |
| OLD | NEW |