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

Issue 149239: Split out some of the RVHDelegate functions into separate sub-classes. To lim... (Closed)

Created:
11 years, 5 months ago by brettw
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, darin (slow to review), brettw, Ben Goodger (Google)
Visibility:
Public.

Description

Split out some of the RVHDelegate functions into separate sub-classes. To limit the scope, this patch just contains those delegate functions implemented only by TabContents, plus the favicon functions implemented by the FavIconHelper. The only changes are re-ordering and moving the functions, and changes in the way that the functions are called through the new optional delegate. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=20152

Patch Set 1 #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+550 lines, -429 lines) Patch
M chrome/browser/fav_icon_helper.h View 3 chunks +12 lines, -5 lines 0 comments Download
M chrome/browser/fav_icon_helper.cc View 2 chunks +35 lines, -22 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 12 chunks +78 lines, -26 lines 3 comments Download
M chrome/browser/renderer_host/render_view_host_delegate.h View 7 chunks +126 lines, -97 lines 2 comments Download
M chrome/browser/renderer_host/render_view_host_delegate.cc View 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/resource_dispatcher_host.cc View 6 chunks +14 lines, -9 lines 2 comments Download
M chrome/browser/tab_contents/tab_contents.h View 6 chunks +47 lines, -43 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 8 chunks +216 lines, -225 lines 1 comment Download
M chrome/browser/worker_host/worker_process_host.cc View 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
brettw
11 years, 5 months ago (2009-07-07 02:22:48 UTC) #1
Erik does not do reviews
11 years, 5 months ago (2009-07-07 18:33:05 UTC) #2
overall LGTM - just nits

http://codereview.chromium.org/149239/diff/1/9
File chrome/browser/renderer_host/render_view_host.cc (right):

http://codereview.chromium.org/149239/diff/1/9#newcode1062
Line 1062: favicon_delegate->DidDownloadImage(this, id, image_url, errored,
image);
This method name seems overly generic to me.  I know this has been there for a
while, but while you're in there...

http://codereview.chromium.org/149239/diff/1/9#newcode1329
Line 1329: integration_delegate->GetHistoryListCount(&back_list_count,
&forward_list_count);
80 cols

http://codereview.chromium.org/149239/diff/1/9#newcode1330
Line 1330: Send(new ViewMsg_UpdateBackForwardListCount(
should this message be sent if there isn't a delegate?  it would always be zero
in that case, right?

http://codereview.chromium.org/149239/diff/1/6
File chrome/browser/renderer_host/render_view_host_delegate.h (right):

http://codereview.chromium.org/149239/diff/1/6#newcode171
Line 171: virtual void OnCrashedPlugin(const FilePath& plugin_path) = 0;
I'm not sure that these OnCrashed* methods should be "BrowserIntegration".  I
guess they're there because of the info bar that gets displayed?  I'm pretty
sure we'll need to handle these in extensions, but I'm not convinced the UI
would be the same.  I think they're fine here for now since I don't really have
a better suggestion (a process manager interface?).

http://codereview.chromium.org/149239/diff/1/6#newcode188
Line 188: virtual void DidStartProvisionalLoadForFrame(RenderViewHost*
render_view_host,
there are a bunch of 80 col issues in this file (I won't bother highlighting
each one)

http://codereview.chromium.org/149239/diff/1/8
File chrome/browser/renderer_host/resource_dispatcher_host.cc (right):

http://codereview.chromium.org/149239/diff/1/8#newcode134
Line 134: NOTREACHED();
could you wrap this in {}?  the previous multi-line conditional makes this hard
to read.

http://codereview.chromium.org/149239/diff/1/8#newcode152
Line 152: // The function to call on RenderViewHostDelegate on the UI thread.
update comment

http://codereview.chromium.org/149239/diff/1/3
File chrome/browser/tab_contents/tab_contents.cc (right):

http://codereview.chromium.org/149239/diff/1/3#newcode1480
Line 1480: 
I didn't look at these changes closely since I assume they were just moved.  Let
me know if I should review them more.

Powered by Google App Engine
This is Rietveld 408576698