| 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> |
| 8 |
| 7 #include <map> | 9 #include <map> |
| 8 | 10 |
| 9 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
| 10 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
| 11 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
| 12 #include "base/trace_event/trace_event.h" | 14 #include "base/trace_event/trace_event.h" |
| 13 #include "content/common/devtools_messages.h" | 15 #include "content/common/devtools_messages.h" |
| 14 #include "content/common/frame_messages.h" | 16 #include "content/common/frame_messages.h" |
| 15 #include "content/renderer/devtools/devtools_client.h" | 17 #include "content/renderer/devtools/devtools_client.h" |
| 16 #include "content/renderer/devtools/devtools_cpu_throttler.h" | 18 #include "content/renderer/devtools/devtools_cpu_throttler.h" |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 WebDevToolsAgent* DevToolsAgent::GetWebAgent() { | 287 WebDevToolsAgent* DevToolsAgent::GetWebAgent() { |
| 286 WebLocalFrame* web_frame = frame_->GetWebFrame(); | 288 WebLocalFrame* web_frame = frame_->GetWebFrame(); |
| 287 return web_frame ? web_frame->devToolsAgent() : nullptr; | 289 return web_frame ? web_frame->devToolsAgent() : nullptr; |
| 288 } | 290 } |
| 289 | 291 |
| 290 bool DevToolsAgent::IsAttached() { | 292 bool DevToolsAgent::IsAttached() { |
| 291 return is_attached_; | 293 return is_attached_; |
| 292 } | 294 } |
| 293 | 295 |
| 294 } // namespace content | 296 } // namespace content |
| OLD | NEW |