| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 <algorithm> | 10 #include <algorithm> |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 | 340 |
| 341 void BrowserRenderProcessHost::CancelResourceRequests(int render_widget_id) { | 341 void BrowserRenderProcessHost::CancelResourceRequests(int render_widget_id) { |
| 342 widget_helper_->CancelResourceRequests(render_widget_id); | 342 widget_helper_->CancelResourceRequests(render_widget_id); |
| 343 } | 343 } |
| 344 | 344 |
| 345 void BrowserRenderProcessHost::CrossSiteClosePageACK( | 345 void BrowserRenderProcessHost::CrossSiteClosePageACK( |
| 346 const ViewMsg_ClosePage_Params& params) { | 346 const ViewMsg_ClosePage_Params& params) { |
| 347 widget_helper_->CrossSiteClosePageACK(params); | 347 widget_helper_->CrossSiteClosePageACK(params); |
| 348 } | 348 } |
| 349 | 349 |
| 350 bool BrowserRenderProcessHost::WaitForUpdateMsg( | 350 bool BrowserRenderProcessHost::WaitForPaintMsg(int render_widget_id, |
| 351 int render_widget_id, | 351 const base::TimeDelta& max_delay, |
| 352 const base::TimeDelta& max_delay, | 352 IPC::Message* msg) { |
| 353 IPC::Message* msg) { | |
| 354 // The post task to this thread with the process id could be in queue, and we | 353 // The post task to this thread with the process id could be in queue, and we |
| 355 // don't want to dispatch a message before then since it will need the handle. | 354 // don't want to dispatch a message before then since it will need the handle. |
| 356 if (child_process_.get() && child_process_->IsStarting()) | 355 if (child_process_.get() && child_process_->IsStarting()) |
| 357 return false; | 356 return false; |
| 358 | 357 |
| 359 return widget_helper_->WaitForUpdateMsg(render_widget_id, max_delay, msg); | 358 return widget_helper_->WaitForPaintMsg(render_widget_id, max_delay, msg); |
| 360 } | 359 } |
| 361 | 360 |
| 362 void BrowserRenderProcessHost::ReceivedBadMessage(uint32 msg_type) { | 361 void BrowserRenderProcessHost::ReceivedBadMessage(uint32 msg_type) { |
| 363 BadMessageTerminateProcess(msg_type, GetHandle()); | 362 BadMessageTerminateProcess(msg_type, GetHandle()); |
| 364 } | 363 } |
| 365 | 364 |
| 366 void BrowserRenderProcessHost::ViewCreated() { | 365 void BrowserRenderProcessHost::ViewCreated() { |
| 367 visited_link_updater_->ReceiverReady(this); | 366 visited_link_updater_->ReceiverReady(this); |
| 368 } | 367 } |
| 369 | 368 |
| (...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 997 IPC::InvalidPlatformFileForTransit(), | 996 IPC::InvalidPlatformFileForTransit(), |
| 998 std::vector<std::string>(), | 997 std::vector<std::string>(), |
| 999 std::string(), | 998 std::string(), |
| 1000 false)); | 999 false)); |
| 1001 } | 1000 } |
| 1002 } | 1001 } |
| 1003 | 1002 |
| 1004 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { | 1003 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { |
| 1005 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); | 1004 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); |
| 1006 } | 1005 } |
| OLD | NEW |