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/browser/devtools/render_frame_devtools_agent_host.h" | 5 #include "content/browser/devtools/render_frame_devtools_agent_host.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "content/browser/child_process_security_policy_impl.h" | 10 #include "content/browser/child_process_security_policy_impl.h" |
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
523 void RenderFrameDevToolsAgentHost::RenderFrameCrashed() { | 523 void RenderFrameDevToolsAgentHost::RenderFrameCrashed() { |
524 inspector_handler_->TargetCrashed(); | 524 inspector_handler_->TargetCrashed(); |
525 } | 525 } |
526 | 526 |
527 void RenderFrameDevToolsAgentHost::OnSwapCompositorFrame( | 527 void RenderFrameDevToolsAgentHost::OnSwapCompositorFrame( |
528 const IPC::Message& message) { | 528 const IPC::Message& message) { |
529 ViewHostMsg_SwapCompositorFrame::Param param; | 529 ViewHostMsg_SwapCompositorFrame::Param param; |
530 if (!ViewHostMsg_SwapCompositorFrame::Read(&message, ¶m)) | 530 if (!ViewHostMsg_SwapCompositorFrame::Read(&message, ¶m)) |
531 return; | 531 return; |
532 if (page_handler_) | 532 if (page_handler_) |
533 page_handler_->OnSwapCompositorFrame(get<1>(param).metadata); | 533 page_handler_->OnSwapCompositorFrame(base::get<1>(param).metadata); |
534 if (input_handler_) | 534 if (input_handler_) |
535 input_handler_->OnSwapCompositorFrame(get<1>(param).metadata); | 535 input_handler_->OnSwapCompositorFrame(base::get<1>(param).metadata); |
536 if (frame_trace_recorder_) { | 536 if (frame_trace_recorder_) { |
537 frame_trace_recorder_->OnSwapCompositorFrame( | 537 frame_trace_recorder_->OnSwapCompositorFrame( |
538 render_frame_host_, get<1>(param).metadata); | 538 render_frame_host_, base::get<1>(param).metadata); |
539 } | 539 } |
540 } | 540 } |
541 | 541 |
542 void RenderFrameDevToolsAgentHost::SynchronousSwapCompositorFrame( | 542 void RenderFrameDevToolsAgentHost::SynchronousSwapCompositorFrame( |
543 const cc::CompositorFrameMetadata& frame_metadata) { | 543 const cc::CompositorFrameMetadata& frame_metadata) { |
544 if (!render_frame_host_) | 544 if (!render_frame_host_) |
545 return; | 545 return; |
546 if (page_handler_) | 546 if (page_handler_) |
547 page_handler_->OnSwapCompositorFrame(frame_metadata); | 547 page_handler_->OnSwapCompositorFrame(frame_metadata); |
548 if (input_handler_) | 548 if (input_handler_) |
(...skipping 14 matching lines...) Expand all Loading... |
563 if (!IsAttached() || !render_frame_host_) | 563 if (!IsAttached() || !render_frame_host_) |
564 return; | 564 return; |
565 ProcessChunkedMessageFromAgent(message); | 565 ProcessChunkedMessageFromAgent(message); |
566 } | 566 } |
567 | 567 |
568 bool RenderFrameDevToolsAgentHost::IsChildFrame() { | 568 bool RenderFrameDevToolsAgentHost::IsChildFrame() { |
569 return render_frame_host_ && render_frame_host_->GetParent(); | 569 return render_frame_host_ && render_frame_host_->GetParent(); |
570 } | 570 } |
571 | 571 |
572 } // namespace content | 572 } // namespace content |
OLD | NEW |