OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/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/devtools_agent_filter.h" |
16 #include "content/renderer/devtools_client.h" | 16 #include "content/renderer/devtools/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/WebConsoleMessage.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" |
| 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" |
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h" |
| 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
20 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPoint.h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPoint.h" |
21 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" | |
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | |
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | |
25 | 25 |
26 #if defined(USE_TCMALLOC) | 26 #if defined(USE_TCMALLOC) |
27 #include "third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h" | 27 #include "third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h" |
28 #endif | 28 #endif |
29 | 29 |
30 using WebKit::WebConsoleMessage; | 30 using WebKit::WebConsoleMessage; |
31 using WebKit::WebDevToolsAgent; | 31 using WebKit::WebDevToolsAgent; |
32 using WebKit::WebDevToolsAgentClient; | 32 using WebKit::WebDevToolsAgentClient; |
33 using WebKit::WebFrame; | 33 using WebKit::WebFrame; |
34 using WebKit::WebPoint; | 34 using WebKit::WebPoint; |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 if (!web_view) | 236 if (!web_view) |
237 return NULL; | 237 return NULL; |
238 return web_view->devToolsAgent(); | 238 return web_view->devToolsAgent(); |
239 } | 239 } |
240 | 240 |
241 bool DevToolsAgent::IsAttached() { | 241 bool DevToolsAgent::IsAttached() { |
242 return is_attached_; | 242 return is_attached_; |
243 } | 243 } |
244 | 244 |
245 } // namespace content | 245 } // namespace content |
OLD | NEW |