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 "content/renderer/devtools_agent.h" | 5 #include "content/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 "base/message_loop.h" |
11 #include "base/process.h" | 11 #include "base/process.h" |
12 #include "base/string_number_conversions.h" | 12 #include "base/string_number_conversions.h" |
13 #include "content/common/content_switches.h" | 13 #include "content/common/devtools_messages.h" |
| 14 #include "content/common/view_messages.h" |
| 15 #include "content/public/common/content_switches.h" |
14 #include "content/renderer/devtools_agent_filter.h" | 16 #include "content/renderer/devtools_agent_filter.h" |
15 #include "content/renderer/devtools_client.h" | 17 #include "content/renderer/devtools_client.h" |
16 #include "content/common/devtools_messages.h" | |
17 #include "content/common/view_messages.h" | |
18 #include "content/renderer/render_view_impl.h" | 18 #include "content/renderer/render_view_impl.h" |
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h" |
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPoint.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPoint.h" |
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
23 | 23 |
24 using WebKit::WebDevToolsAgent; | 24 using WebKit::WebDevToolsAgent; |
25 using WebKit::WebDevToolsAgentClient; | 25 using WebKit::WebDevToolsAgentClient; |
26 using WebKit::WebPoint; | 26 using WebKit::WebPoint; |
27 using WebKit::WebString; | 27 using WebKit::WebString; |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 WebDevToolsAgent* DevToolsAgent::GetWebAgent() { | 202 WebDevToolsAgent* DevToolsAgent::GetWebAgent() { |
203 WebView* web_view = render_view()->GetWebView(); | 203 WebView* web_view = render_view()->GetWebView(); |
204 if (!web_view) | 204 if (!web_view) |
205 return NULL; | 205 return NULL; |
206 return web_view->devToolsAgent(); | 206 return web_view->devToolsAgent(); |
207 } | 207 } |
208 | 208 |
209 bool DevToolsAgent::IsAttached() { | 209 bool DevToolsAgent::IsAttached() { |
210 return is_attached_; | 210 return is_attached_; |
211 } | 211 } |
OLD | NEW |