| 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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_.get() && child_process_->IsStarting()) | 444 if (child_process_.get() && child_process_->IsStarting()) |
| 445 return false; | 445 return false; |
| (...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1085 IPC::PlatformFileForTransit file; | 1085 IPC::PlatformFileForTransit file; |
| 1086 #if defined(OS_POSIX) | 1086 #if defined(OS_POSIX) |
| 1087 file = base::FileDescriptor(model_file, false); | 1087 file = base::FileDescriptor(model_file, false); |
| 1088 #elif defined(OS_WIN) | 1088 #elif defined(OS_WIN) |
| 1089 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, | 1089 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, |
| 1090 false, DUPLICATE_SAME_ACCESS); | 1090 false, DUPLICATE_SAME_ACCESS); |
| 1091 #endif | 1091 #endif |
| 1092 Send(new SafeBrowsingMsg_SetPhishingModel(file)); | 1092 Send(new SafeBrowsingMsg_SetPhishingModel(file)); |
| 1093 } | 1093 } |
| 1094 } | 1094 } |
| OLD | NEW |