Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: chrome/browser/renderer_host/browser_render_process_host.cc

Issue 159255: Fix a race condition where rapid back/forward clicks could close a tab... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 "chrome/browser/renderer_host/browser_render_process_host.h" 8 #include "chrome/browser/renderer_host/browser_render_process_host.h"
9 9
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 493
494 int BrowserRenderProcessHost::GetNextRoutingID() { 494 int BrowserRenderProcessHost::GetNextRoutingID() {
495 return widget_helper_->GetNextRoutingID(); 495 return widget_helper_->GetNextRoutingID();
496 } 496 }
497 497
498 void BrowserRenderProcessHost::CancelResourceRequests(int render_widget_id) { 498 void BrowserRenderProcessHost::CancelResourceRequests(int render_widget_id) {
499 widget_helper_->CancelResourceRequests(render_widget_id); 499 widget_helper_->CancelResourceRequests(render_widget_id);
500 } 500 }
501 501
502 void BrowserRenderProcessHost::CrossSiteClosePageACK( 502 void BrowserRenderProcessHost::CrossSiteClosePageACK(
503 int new_render_process_host_id, 503 const ViewMsg_ClosePage_Params& params) {
504 int new_request_id) { 504 widget_helper_->CrossSiteClosePageACK(params);
505 widget_helper_->CrossSiteClosePageACK(new_render_process_host_id,
506 new_request_id);
507 } 505 }
508 506
509 bool BrowserRenderProcessHost::WaitForPaintMsg(int render_widget_id, 507 bool BrowserRenderProcessHost::WaitForPaintMsg(int render_widget_id,
510 const base::TimeDelta& max_delay, 508 const base::TimeDelta& max_delay,
511 IPC::Message* msg) { 509 IPC::Message* msg) {
512 return widget_helper_->WaitForPaintMsg(render_widget_id, max_delay, msg); 510 return widget_helper_->WaitForPaintMsg(render_widget_id, max_delay, msg);
513 } 511 }
514 512
515 void BrowserRenderProcessHost::ReceivedBadMessage(uint16 msg_type) { 513 void BrowserRenderProcessHost::ReceivedBadMessage(uint16 msg_type) {
516 BadMessageTerminateProcess(msg_type, process_.handle()); 514 BadMessageTerminateProcess(msg_type, process_.handle());
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 profile()->GetExtensionMessageService()->RemoveEventListener(event_name, 972 profile()->GetExtensionMessageService()->RemoveEventListener(event_name,
975 pid()); 973 pid());
976 } 974 }
977 } 975 }
978 976
979 void BrowserRenderProcessHost::OnExtensionCloseChannel(int port_id) { 977 void BrowserRenderProcessHost::OnExtensionCloseChannel(int port_id) {
980 if (profile()->GetExtensionMessageService()) { 978 if (profile()->GetExtensionMessageService()) {
981 profile()->GetExtensionMessageService()->CloseChannel(port_id); 979 profile()->GetExtensionMessageService()->CloseChannel(port_id);
982 } 980 }
983 } 981 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/browser_render_process_host.h ('k') | chrome/browser/renderer_host/mock_render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698