| 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 // Represents the browser side of the browser <--> renderer communication | 5 // Represents the browser side of the browser <--> renderer communication |
| 6 // channel. There will be one RenderProcessHost per renderer process. | 6 // channel. There will be one RenderProcessHost per renderer process. |
| 7 | 7 |
| 8 #include "content/browser/renderer_host/render_process_host_impl.h" | 8 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 9 | 9 |
| 10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
| (...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 } | 546 } |
| 547 | 547 |
| 548 int RenderProcessHostImpl::GetNextRoutingID() { | 548 int RenderProcessHostImpl::GetNextRoutingID() { |
| 549 return widget_helper_->GetNextRoutingID(); | 549 return widget_helper_->GetNextRoutingID(); |
| 550 } | 550 } |
| 551 | 551 |
| 552 void RenderProcessHostImpl::CancelResourceRequests(int render_widget_id) { | 552 void RenderProcessHostImpl::CancelResourceRequests(int render_widget_id) { |
| 553 widget_helper_->CancelResourceRequests(render_widget_id); | 553 widget_helper_->CancelResourceRequests(render_widget_id); |
| 554 } | 554 } |
| 555 | 555 |
| 556 void RenderProcessHostImpl::SimulateSwapOutACK( | 556 void RenderProcessHostImpl::CrossSiteSwapOutACK( |
| 557 const ViewMsg_SwapOut_Params& params) { | 557 const ViewMsg_SwapOut_Params& params) { |
| 558 widget_helper_->SimulateSwapOutACK(params); | 558 widget_helper_->CrossSiteSwapOutACK(params); |
| 559 } | 559 } |
| 560 | 560 |
| 561 bool RenderProcessHostImpl::WaitForBackingStoreMsg( | 561 bool RenderProcessHostImpl::WaitForBackingStoreMsg( |
| 562 int render_widget_id, | 562 int render_widget_id, |
| 563 const base::TimeDelta& max_delay, | 563 const base::TimeDelta& max_delay, |
| 564 IPC::Message* msg) { | 564 IPC::Message* msg) { |
| 565 // The post task to this thread with the process id could be in queue, and we | 565 // The post task to this thread with the process id could be in queue, and we |
| 566 // don't want to dispatch a message before then since it will need the handle. | 566 // don't want to dispatch a message before then since it will need the handle. |
| 567 if (child_process_launcher_.get() && child_process_launcher_->IsStarting()) | 567 if (child_process_launcher_.get() && child_process_launcher_->IsStarting()) |
| 568 return false; | 568 return false; |
| (...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1356 void RenderProcessHostImpl::OnCompositorSurfaceBuffersSwappedNoHost( | 1356 void RenderProcessHostImpl::OnCompositorSurfaceBuffersSwappedNoHost( |
| 1357 int32 surface_id, | 1357 int32 surface_id, |
| 1358 uint64 surface_handle, | 1358 uint64 surface_handle, |
| 1359 int32 route_id, | 1359 int32 route_id, |
| 1360 int32 gpu_process_host_id) { | 1360 int32 gpu_process_host_id) { |
| 1361 TRACE_EVENT0("renderer_host", | 1361 TRACE_EVENT0("renderer_host", |
| 1362 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1362 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
| 1363 RenderWidgetHostImpl::AcknowledgeSwapBuffers(route_id, | 1363 RenderWidgetHostImpl::AcknowledgeSwapBuffers(route_id, |
| 1364 gpu_process_host_id); | 1364 gpu_process_host_id); |
| 1365 } | 1365 } |
| OLD | NEW |