OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/message_loop.h" |
10 #include "chrome/common/chrome_switches.h" | 11 #include "chrome/common/chrome_switches.h" |
11 #include "chrome/common/devtools_messages.h" | 12 #include "chrome/common/devtools_messages.h" |
12 #include "chrome/renderer/devtools_agent_filter.h" | 13 #include "chrome/renderer/devtools_agent_filter.h" |
13 #include "chrome/renderer/devtools_client.h" | 14 #include "chrome/renderer/devtools_client.h" |
14 #include "content/common/view_messages.h" | 15 #include "content/common/view_messages.h" |
15 #include "content/renderer/render_view.h" | 16 #include "content/renderer/render_view.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPoint.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPoint.h" |
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 void DevToolsAgent::OnSetupDevToolsClient() { | 193 void DevToolsAgent::OnSetupDevToolsClient() { |
193 new DevToolsClient(render_view()); | 194 new DevToolsClient(render_view()); |
194 } | 195 } |
195 | 196 |
196 WebDevToolsAgent* DevToolsAgent::GetWebAgent() { | 197 WebDevToolsAgent* DevToolsAgent::GetWebAgent() { |
197 WebView* web_view = render_view()->webview(); | 198 WebView* web_view = render_view()->webview(); |
198 if (!web_view) | 199 if (!web_view) |
199 return NULL; | 200 return NULL; |
200 return web_view->devToolsAgent(); | 201 return web_view->devToolsAgent(); |
201 } | 202 } |
OLD | NEW |