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

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: Better message filtering approach. 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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 } 423 }
424 424
425 int BrowserRenderProcessHost::GetNextRoutingID() { 425 int BrowserRenderProcessHost::GetNextRoutingID() {
426 return widget_helper_->GetNextRoutingID(); 426 return widget_helper_->GetNextRoutingID();
427 } 427 }
428 428
429 void BrowserRenderProcessHost::CancelResourceRequests(int render_widget_id) { 429 void BrowserRenderProcessHost::CancelResourceRequests(int render_widget_id) {
430 widget_helper_->CancelResourceRequests(render_widget_id); 430 widget_helper_->CancelResourceRequests(render_widget_id);
431 } 431 }
432 432
433 void BrowserRenderProcessHost::CrossSiteClosePageACK( 433 void BrowserRenderProcessHost::CrossSiteSwapOutACK(
434 const ViewMsg_ClosePage_Params& params) { 434 const ViewMsg_SwapOut_Params& params) {
435 widget_helper_->CrossSiteClosePageACK(params); 435 widget_helper_->CrossSiteSwapOutACK(params);
436 } 436 }
437 437
438 bool BrowserRenderProcessHost::WaitForUpdateMsg( 438 bool BrowserRenderProcessHost::WaitForUpdateMsg(
439 int render_widget_id, 439 int render_widget_id,
440 const base::TimeDelta& max_delay, 440 const base::TimeDelta& max_delay,
441 IPC::Message* msg) { 441 IPC::Message* msg) {
442 // The post task to this thread with the process id could be in queue, and we 442 // The post task to this thread with the process id could be in queue, and we
443 // don't want to dispatch a message before then since it will need the handle. 443 // don't want to dispatch a message before then since it will need the handle.
444 if (child_process_launcher_.get() && child_process_launcher_->IsStarting()) 444 if (child_process_launcher_.get() && child_process_launcher_->IsStarting())
445 return false; 445 return false;
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
1086 IPC::PlatformFileForTransit file; 1086 IPC::PlatformFileForTransit file;
1087 #if defined(OS_POSIX) 1087 #if defined(OS_POSIX)
1088 file = base::FileDescriptor(model_file, false); 1088 file = base::FileDescriptor(model_file, false);
1089 #elif defined(OS_WIN) 1089 #elif defined(OS_WIN)
1090 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, 1090 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0,
1091 false, DUPLICATE_SAME_ACCESS); 1091 false, DUPLICATE_SAME_ACCESS);
1092 #endif 1092 #endif
1093 Send(new SafeBrowsingMsg_SetPhishingModel(file)); 1093 Send(new SafeBrowsingMsg_SetPhishingModel(file));
1094 } 1094 }
1095 } 1095 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698