OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/browser_render_process_host.h" | 8 #include "content/browser/renderer_host/browser_render_process_host.h" |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 } | 401 } |
402 | 402 |
403 int BrowserRenderProcessHost::GetNextRoutingID() { | 403 int BrowserRenderProcessHost::GetNextRoutingID() { |
404 return widget_helper_->GetNextRoutingID(); | 404 return widget_helper_->GetNextRoutingID(); |
405 } | 405 } |
406 | 406 |
407 void BrowserRenderProcessHost::CancelResourceRequests(int render_widget_id) { | 407 void BrowserRenderProcessHost::CancelResourceRequests(int render_widget_id) { |
408 widget_helper_->CancelResourceRequests(render_widget_id); | 408 widget_helper_->CancelResourceRequests(render_widget_id); |
409 } | 409 } |
410 | 410 |
411 void BrowserRenderProcessHost::CrossSiteClosePageACK( | 411 void BrowserRenderProcessHost::CrossSiteSwapOutACK( |
412 const ViewMsg_ClosePage_Params& params) { | 412 const ViewMsg_SwapOut_Params& params) { |
413 widget_helper_->CrossSiteClosePageACK(params); | 413 widget_helper_->CrossSiteSwapOutACK(params); |
414 } | 414 } |
415 | 415 |
416 bool BrowserRenderProcessHost::WaitForUpdateMsg( | 416 bool BrowserRenderProcessHost::WaitForUpdateMsg( |
417 int render_widget_id, | 417 int render_widget_id, |
418 const base::TimeDelta& max_delay, | 418 const base::TimeDelta& max_delay, |
419 IPC::Message* msg) { | 419 IPC::Message* msg) { |
420 // The post task to this thread with the process id could be in queue, and we | 420 // The post task to this thread with the process id could be in queue, and we |
421 // don't want to dispatch a message before then since it will need the handle. | 421 // don't want to dispatch a message before then since it will need the handle. |
422 if (child_process_launcher_.get() && child_process_launcher_->IsStarting()) | 422 if (child_process_launcher_.get() && child_process_launcher_->IsStarting()) |
423 return false; | 423 return false; |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
961 while (!queued_messages_.empty()) { | 961 while (!queued_messages_.empty()) { |
962 Send(queued_messages_.front()); | 962 Send(queued_messages_.front()); |
963 queued_messages_.pop(); | 963 queued_messages_.pop(); |
964 } | 964 } |
965 } | 965 } |
966 | 966 |
967 void BrowserRenderProcessHost::OnUserMetricsRecordAction( | 967 void BrowserRenderProcessHost::OnUserMetricsRecordAction( |
968 const std::string& action) { | 968 const std::string& action) { |
969 UserMetrics::RecordComputedAction(action); | 969 UserMetrics::RecordComputedAction(action); |
970 } | 970 } |
OLD | NEW |