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

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

Issue 506013: Combine ViewHostMsg_{Paint,Scroll}Rect into one IPC.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years 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) 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
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::WaitForPaintMsg(int render_widget_id, 350 bool BrowserRenderProcessHost::WaitForUpdateMsg(
351 const base::TimeDelta& max_delay, 351 int render_widget_id,
352 IPC::Message* msg) { 352 const base::TimeDelta& max_delay,
353 IPC::Message* msg) {
353 // The post task to this thread with the process id could be in queue, and we 354 // The post task to this thread with the process id could be in queue, and we
354 // don't want to dispatch a message before then since it will need the handle. 355 // don't want to dispatch a message before then since it will need the handle.
355 if (child_process_.get() && child_process_->IsStarting()) 356 if (child_process_.get() && child_process_->IsStarting())
356 return false; 357 return false;
357 358
358 return widget_helper_->WaitForPaintMsg(render_widget_id, max_delay, msg); 359 return widget_helper_->WaitForUpdateMsg(render_widget_id, max_delay, msg);
359 } 360 }
360 361
361 void BrowserRenderProcessHost::ReceivedBadMessage(uint32 msg_type) { 362 void BrowserRenderProcessHost::ReceivedBadMessage(uint32 msg_type) {
362 BadMessageTerminateProcess(msg_type, GetHandle()); 363 BadMessageTerminateProcess(msg_type, GetHandle());
363 } 364 }
364 365
365 void BrowserRenderProcessHost::ViewCreated() { 366 void BrowserRenderProcessHost::ViewCreated() {
366 visited_link_updater_->ReceiverReady(this); 367 visited_link_updater_->ReceiverReady(this);
367 } 368 }
368 369
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
996 IPC::InvalidPlatformFileForTransit(), 997 IPC::InvalidPlatformFileForTransit(),
997 std::vector<std::string>(), 998 std::vector<std::string>(),
998 std::string(), 999 std::string(),
999 false)); 1000 false));
1000 } 1001 }
1001 } 1002 }
1002 1003
1003 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { 1004 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) {
1004 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); 1005 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable));
1005 } 1006 }
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