| 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/renderer_host/render_widget_helper.h" | 5 #include "content/browser/renderer_host/render_widget_helper.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/posix/eintr_wrapper.h" | 10 #include "base/posix/eintr_wrapper.h" |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 // It is reasonable for the host to no longer exist. | 248 // It is reasonable for the host to no longer exist. |
| 249 RenderProcessHost* host = RenderProcessHost::FromID(render_process_id_); | 249 RenderProcessHost* host = RenderProcessHost::FromID(render_process_id_); |
| 250 if (host) | 250 if (host) |
| 251 host->OnMessageReceived(proxy->message()); | 251 host->OnMessageReceived(proxy->message()); |
| 252 } | 252 } |
| 253 | 253 |
| 254 void RenderWidgetHelper::OnCancelResourceRequests( | 254 void RenderWidgetHelper::OnCancelResourceRequests( |
| 255 int render_widget_id) { | 255 int render_widget_id) { |
| 256 resource_dispatcher_host_->CancelRequestsForRoute( | 256 resource_dispatcher_host_->CancelRequestsForRoute( |
| 257 render_process_id_, render_widget_id); | 257 render_process_id_, render_widget_id); |
| 258 resource_dispatcher_host_->scheduler()->OnDestroy( |
| 259 render_process_id_, render_widget_id); |
| 258 } | 260 } |
| 259 | 261 |
| 260 void RenderWidgetHelper::OnSimulateSwapOutACK( | 262 void RenderWidgetHelper::OnSimulateSwapOutACK( |
| 261 const ViewMsg_SwapOut_Params& params) { | 263 const ViewMsg_SwapOut_Params& params) { |
| 262 resource_dispatcher_host_->OnSimulateSwapOutACK(params); | 264 resource_dispatcher_host_->OnSimulateSwapOutACK(params); |
| 263 } | 265 } |
| 264 | 266 |
| 265 void RenderWidgetHelper::CreateNewWindow( | 267 void RenderWidgetHelper::CreateNewWindow( |
| 266 const ViewHostMsg_CreateWindow_Params& params, | 268 const ViewHostMsg_CreateWindow_Params& params, |
| 267 bool no_javascript_access, | 269 bool no_javascript_access, |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 i = allocated_dibs_.begin(); i != allocated_dibs_.end(); ++i) { | 405 i = allocated_dibs_.begin(); i != allocated_dibs_.end(); ++i) { |
| 404 if (HANDLE_EINTR(close(i->second)) < 0) | 406 if (HANDLE_EINTR(close(i->second)) < 0) |
| 405 PLOG(ERROR) << "close: " << i->first; | 407 PLOG(ERROR) << "close: " << i->first; |
| 406 } | 408 } |
| 407 | 409 |
| 408 allocated_dibs_.clear(); | 410 allocated_dibs_.clear(); |
| 409 } | 411 } |
| 410 #endif | 412 #endif |
| 411 | 413 |
| 412 } // namespace content | 414 } // namespace content |
| OLD | NEW |