| 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/devtools_agent.h" | 5 #include "content/renderer/devtools/devtools_agent.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| 11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
| 12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
| 13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
| 14 #include "base/trace_event/trace_event.h" | 14 #include "base/trace_event/trace_event.h" |
| 15 #include "content/common/devtools_messages.h" | 15 #include "content/common/devtools_messages.h" |
| 16 #include "content/common/frame_messages.h" | 16 #include "content/common/frame_messages.h" |
| 17 #include "content/renderer/devtools/devtools_client.h" | 17 #include "content/renderer/devtools/devtools_client.h" |
| 18 #include "content/renderer/devtools/devtools_cpu_throttler.h" | 18 #include "content/renderer/devtools/devtools_cpu_throttler.h" |
| 19 #include "content/renderer/render_frame_impl.h" | 19 #include "content/renderer/render_frame_impl.h" |
| 20 #include "content/renderer/render_widget.h" | 20 #include "content/renderer/render_widget.h" |
| 21 #include "ipc/ipc_channel.h" | 21 #include "ipc/ipc_channel.h" |
| 22 #include "third_party/WebKit/public/platform/WebPoint.h" | 22 #include "third_party/WebKit/public/platform/WebPoint.h" |
| 23 #include "third_party/WebKit/public/platform/WebString.h" | 23 #include "third_party/WebKit/public/platform/WebString.h" |
| 24 #include "third_party/WebKit/public/web/WebConsoleMessage.h" | 24 #include "third_party/WebKit/public/web/WebConsoleMessage.h" |
| 25 #include "third_party/WebKit/public/web/WebDevToolsAgent.h" | 25 #include "third_party/WebKit/public/web/WebDevToolsAgent.h" |
| 26 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 26 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
| 27 | 27 |
| 28 #if defined(USE_TCMALLOC) | |
| 29 #include "third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h" | |
| 30 #endif | |
| 31 | |
| 32 using blink::WebConsoleMessage; | 28 using blink::WebConsoleMessage; |
| 33 using blink::WebDevToolsAgent; | 29 using blink::WebDevToolsAgent; |
| 34 using blink::WebDevToolsAgentClient; | 30 using blink::WebDevToolsAgentClient; |
| 35 using blink::WebLocalFrame; | 31 using blink::WebLocalFrame; |
| 36 using blink::WebPoint; | 32 using blink::WebPoint; |
| 37 using blink::WebString; | 33 using blink::WebString; |
| 38 | 34 |
| 39 using base::trace_event::TraceLog; | 35 using base::trace_event::TraceLog; |
| 40 | 36 |
| 41 namespace content { | 37 namespace content { |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 WebDevToolsAgent* DevToolsAgent::GetWebAgent() { | 283 WebDevToolsAgent* DevToolsAgent::GetWebAgent() { |
| 288 WebLocalFrame* web_frame = frame_->GetWebFrame(); | 284 WebLocalFrame* web_frame = frame_->GetWebFrame(); |
| 289 return web_frame ? web_frame->devToolsAgent() : nullptr; | 285 return web_frame ? web_frame->devToolsAgent() : nullptr; |
| 290 } | 286 } |
| 291 | 287 |
| 292 bool DevToolsAgent::IsAttached() { | 288 bool DevToolsAgent::IsAttached() { |
| 293 return is_attached_; | 289 return is_attached_; |
| 294 } | 290 } |
| 295 | 291 |
| 296 } // namespace content | 292 } // namespace content |
| OLD | NEW |