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

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

Issue 6319001: Support window.opener after a process swap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with trunk. Created 9 years, 7 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) 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
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
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 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/browser_render_process_host.h ('k') | content/browser/renderer_host/mock_render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698