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/lazy_instance.h" | 9 #include "base/lazy_instance.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/devtools_messages.h" | 13 #include "content/common/devtools_messages.h" |
14 #include "content/common/view_messages.h" | 14 #include "content/common/view_messages.h" |
15 #include "content/renderer/devtools_agent_filter.h" | 15 #include "content/renderer/devtools_agent_filter.h" |
16 #include "content/renderer/devtools_client.h" | 16 #include "content/renderer/devtools_client.h" |
17 #include "content/renderer/render_view_impl.h" | 17 #include "content/renderer/render_view_impl.h" |
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h" |
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPoint.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPoint.h" |
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
22 | 22 |
23 using WebKit::WebDevToolsAgent; | 23 using WebKit::WebDevToolsAgent; |
24 using WebKit::WebDevToolsAgentClient; | 24 using WebKit::WebDevToolsAgentClient; |
25 using WebKit::WebPoint; | 25 using WebKit::WebPoint; |
26 using WebKit::WebString; | 26 using WebKit::WebString; |
27 using WebKit::WebCString; | 27 using WebKit::WebCString; |
28 using WebKit::WebVector; | 28 using WebKit::WebVector; |
29 using WebKit::WebView; | 29 using WebKit::WebView; |
30 | 30 |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 WebDevToolsAgent* DevToolsAgent::GetWebAgent() { | 179 WebDevToolsAgent* DevToolsAgent::GetWebAgent() { |
180 WebView* web_view = render_view()->GetWebView(); | 180 WebView* web_view = render_view()->GetWebView(); |
181 if (!web_view) | 181 if (!web_view) |
182 return NULL; | 182 return NULL; |
183 return web_view->devToolsAgent(); | 183 return web_view->devToolsAgent(); |
184 } | 184 } |
185 | 185 |
186 bool DevToolsAgent::IsAttached() { | 186 bool DevToolsAgent::IsAttached() { |
187 return is_attached_; | 187 return is_attached_; |
188 } | 188 } |
OLD | NEW |