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

Issue 6750018: Cleanup: Stop creating RenderViewObservers from chrome/ in RenderViewer. (Closed)

Created:
9 years, 9 months ago by Lei Zhang
Modified:
9 years, 7 months ago
Reviewers:
jam, Matt Perry
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Cleanup: Stop creating RenderViewObservers from chrome/ in RenderView. BUG=76795 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=80818

Patch Set 1 : '' #

Patch Set 2 : fix build on win #

Patch Set 3 : fix build on win/mac #

Total comments: 12

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 6

Patch Set 6 : '' #

Patch Set 7 : printPage -> PrintPage #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -49 lines) Patch
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 4 chunks +9 lines, -1 line 0 comments Download
M chrome/renderer/print_web_view_helper.h View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/renderer/print_web_view_helper.cc View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M chrome/renderer/search_extension.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/renderer/searchbox.h View 1 2 3 4 5 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/renderer/searchbox.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M chrome/renderer/searchbox_extension.cc View 1 2 3 4 5 10 chunks +11 lines, -11 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_view.h View 1 2 3 4 5 6 chunks +0 lines, -15 lines 0 comments Download
content/renderer/render_view.cc View 1 2 3 4 5 6 5 chunks +2 lines, -8 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 5 4 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/render_view_observer.h View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
content/renderer/render_view_observer_tracker.h View 1 2 3 4 5 1 chunk +63 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Lei Zhang
This is a rough draft. If you feel this is going in the right direction, ...
9 years, 8 months ago (2011-03-29 01:52:54 UTC) #1
jam
thanks for starting on this. i have a few rough ideas for how i was ...
9 years, 8 months ago (2011-03-29 18:31:59 UTC) #2
Lei Zhang
I tried to implement your ideas in patch set 4. I didn't move all the ...
9 years, 8 months ago (2011-03-30 22:05:43 UTC) #3
jam
Getting RVOs by name and then casting feels like a poor man's RTTI. Combined with ...
9 years, 8 months ago (2011-03-31 00:10:28 UTC) #4
Lei Zhang
Definitely a poor man's RTTI. Assuming I can take care of that, how do you ...
9 years, 8 months ago (2011-03-31 00:22:25 UTC) #5
jam
On Wed, Mar 30, 2011 at 5:22 PM, <thestig@chromium.org> wrote: > Definitely a poor man's ...
9 years, 8 months ago (2011-03-31 05:49:22 UTC) #6
Lei Zhang
On 2011/03/31 05:49:22, John Abd-El-Malek wrote: > It would be great if we can eliminate ...
9 years, 8 months ago (2011-04-05 07:41:16 UTC) #7
jam
http://codereview.chromium.org/6750018/diff/27004/content/renderer/render_view_observer.h File content/renderer/render_view_observer.h (right): http://codereview.chromium.org/6750018/diff/27004/content/renderer/render_view_observer.h#newcode48 content/renderer/render_view_observer.h:48: virtual void printPage(WebKit::WebFrame* frame) {} this needs to be ...
9 years, 8 months ago (2011-04-05 18:10:07 UTC) #8
Lei Zhang
http://codereview.chromium.org/6750018/diff/27004/content/renderer/render_view_observer.h File content/renderer/render_view_observer.h (right): http://codereview.chromium.org/6750018/diff/27004/content/renderer/render_view_observer.h#newcode48 content/renderer/render_view_observer.h:48: virtual void printPage(WebKit::WebFrame* frame) {} On 2011/04/05 18:10:07, John ...
9 years, 8 months ago (2011-04-05 21:03:16 UTC) #9
jam
http://codereview.chromium.org/6750018/diff/27004/content/renderer/render_view_observer_tracker.h File content/renderer/render_view_observer_tracker.h (right): http://codereview.chromium.org/6750018/diff/27004/content/renderer/render_view_observer_tracker.h#newcode14 content/renderer/render_view_observer_tracker.h:14: // RENDER_VIEW_OBSERVER_TRACKER_MAP(MyRVO); On 2011/04/05 21:03:16, Lei Zhang wrote: > ...
9 years, 8 months ago (2011-04-05 21:08:35 UTC) #10
Lei Zhang
On 2011/04/05 21:08:35, John Abd-El-Malek wrote: > http://codereview.chromium.org/6750018/diff/27004/content/renderer/render_view_observer_tracker.h > File content/renderer/render_view_observer_tracker.h (right): > > http://codereview.chromium.org/6750018/diff/27004/content/renderer/render_view_observer_tracker.h#newcode14 ...
9 years, 8 months ago (2011-04-05 21:30:06 UTC) #11
jam
On 2011/04/05 21:30:06, Lei Zhang wrote: > On 2011/04/05 21:08:35, John Abd-El-Malek wrote: > > ...
9 years, 8 months ago (2011-04-05 21:47:00 UTC) #12
Lei Zhang
On 2011/04/05 21:47:00, John Abd-El-Malek wrote: > On 2011/04/05 21:30:06, Lei Zhang wrote: > > ...
9 years, 8 months ago (2011-04-06 17:57:58 UTC) #13
jam
I'm not sure that checking the dll size is enough, i.e. what if there's padding? ...
9 years, 8 months ago (2011-04-07 01:25:39 UTC) #14
Matt Perry
http://codereview.chromium.org/6750018/diff/27004/content/renderer/render_view_observer_tracker.h File content/renderer/render_view_observer_tracker.h (right): http://codereview.chromium.org/6750018/diff/27004/content/renderer/render_view_observer_tracker.h#newcode14 content/renderer/render_view_observer_tracker.h:14: // RENDER_VIEW_OBSERVER_TRACKER_MAP(MyRVO); On 2011/04/05 21:08:35, John Abd-El-Malek wrote: > ...
9 years, 8 months ago (2011-04-07 01:32:21 UTC) #15
jam
9 years, 8 months ago (2011-04-07 01:35:56 UTC) #16
On Wed, Apr 6, 2011 at 6:32 PM, <mpcomplete@chromium.org> wrote:

>
>
>
http://codereview.chromium.org/6750018/diff/27004/content/renderer/render_vie...
> File content/renderer/render_view_observer_tracker.h (right):
>
>
>
http://codereview.chromium.org/6750018/diff/27004/content/renderer/render_vie...
> content/renderer/render_view_observer_tracker.h:14: //
> RENDER_VIEW_OBSERVER_TRACKER_MAP(MyRVO);
> On 2011/04/05 21:08:35, John Abd-El-Malek wrote:
>
>> On 2011/04/05 21:03:16, Lei Zhang wrote:
>> > On 2011/04/05 18:10:07, John Abd-El-Malek wrote:
>> > > I like this approach a lot more, very nice :)
>> > >
>> > > Can we get rid of the macro though?  i.e. have it as a static
>>
> variable in
>
>> > > RenderViewObserverTracker's constructor?
>> >
>> > I couldn't put it in the constructor, but I put it outside of the
>>
> class and
>
>> that
>> > seems to work.
>>
>
>  wouldn't putting it in the header, outside any class, mean that a copy
>>
> gets
>
>> created each time that file is included??
>>
>
> Since it's declared as a static member in the class, there should still
> only be 1 instance. However, I would expect multiple definitions to be a
> link error. Maybe only 1 file ever includes the headers where this macro
> is used? Or maybe gcc is clever about merging the instances.


jyasskin (compiler team) said that gcc is smart about this, but VS is not,
hence my apprehension.  i guess we can try it and we'll see if there are
problems pretty quickly.

lgtm, sorry for the delay

>
>
> http://codereview.chromium.org/6750018/
>

Powered by Google App Engine
This is Rietveld 408576698