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

Issue 6151011: Introduce RenderView::Observer interface so that RenderView doesn't have to k... (Closed)

Created:
9 years, 11 months ago by jam
Modified:
9 years, 7 months ago
Reviewers:
brettw, dhollowa
CC:
chromium-reviews, James Hawkins, darin-cc_chromium.org, tburkard
Visibility:
Public.

Description

Introduce RenderView::Observer interface so that RenderView doesn't have to know about the details of every feature. Observers get to filter and send IPC messages, and basic notifications of frame related events.I've moved over AutoFill related classes, and also made AutoFillManager implement the new WebAutoFillClient interface. For the rest of the classes, they implement the interface just for message filtering. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71517

Patch Set 1 : '' #

Total comments: 14

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 8

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+771 lines, -798 lines) Patch
M chrome/chrome_renderer.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/autofill_helper.h View 1 2 3 4 5 chunks +52 lines, -65 lines 0 comments Download
M chrome/renderer/autofill_helper.cc View 1 2 3 4 7 chunks +160 lines, -105 lines 0 comments Download
M chrome/renderer/device_orientation_dispatcher.h View 1 2 3 4 2 chunks +7 lines, -9 lines 0 comments Download
M chrome/renderer/device_orientation_dispatcher.cc View 1 2 3 4 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/renderer/devtools_agent.h View 1 2 3 4 2 chunks +15 lines, -20 lines 0 comments Download
M chrome/renderer/devtools_agent.cc View 1 2 3 4 4 chunks +28 lines, -27 lines 0 comments Download
M chrome/renderer/devtools_client.h View 1 2 3 4 3 chunks +8 lines, -10 lines 0 comments Download
M chrome/renderer/devtools_client.cc View 1 2 3 4 3 chunks +16 lines, -22 lines 0 comments Download
MM chrome/renderer/geolocation_dispatcher.h View 1 2 3 4 3 chunks +5 lines, -8 lines 0 comments Download
MM chrome/renderer/geolocation_dispatcher.cc View 1 2 3 4 5 chunks +9 lines, -11 lines 0 comments Download
M chrome/renderer/notification_provider.h View 1 2 3 4 3 chunks +10 lines, -19 lines 0 comments Download
M chrome/renderer/notification_provider.cc View 1 2 3 4 9 chunks +18 lines, -18 lines 0 comments Download
M chrome/renderer/page_click_tracker.h View 1 2 3 4 4 chunks +11 lines, -22 lines 0 comments Download
M chrome/renderer/page_click_tracker.cc View 1 2 3 4 4 chunks +35 lines, -24 lines 0 comments Download
M chrome/renderer/page_click_tracker_unittest.cc View 1 2 2 chunks +8 lines, -4 lines 0 comments Download
M chrome/renderer/password_autocomplete_manager.h View 1 2 3 4 5 chunks +18 lines, -20 lines 0 comments Download
M chrome/renderer/password_autocomplete_manager.cc View 1 2 3 4 4 chunks +55 lines, -43 lines 0 comments Download
M chrome/renderer/password_autocomplete_manager_unittest.cc View 1 2 3 4 6 chunks +9 lines, -8 lines 0 comments Download
M chrome/renderer/render_view.h View 1 2 3 4 15 chunks +37 lines, -90 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 2 3 4 25 chunks +121 lines, -232 lines 0 comments Download
M chrome/renderer/render_view_browsertest.cc View 1 2 3 4 5 chunks +15 lines, -12 lines 0 comments Download
A chrome/renderer/render_view_observer.h View 1 2 3 4 1 chunk +63 lines, -0 lines 0 comments Download
A chrome/renderer/render_view_observer.cc View 1 2 3 4 1 chunk +33 lines, -0 lines 0 comments Download
MM chrome/renderer/speech_input_dispatcher.h View 1 2 3 4 2 chunks +6 lines, -10 lines 0 comments Download
M chrome/renderer/speech_input_dispatcher.cc View 1 2 3 4 3 chunks +8 lines, -9 lines 0 comments Download
M chrome/test/render_view_test.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/test/render_view_test.cc View 1 2 3 4 4 chunks +13 lines, -4 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
jam
9 years, 11 months ago (2011-01-13 01:51:30 UTC) #1
Ilya Sherman
http://codereview.chromium.org/6151011/diff/10002/chrome/renderer/autofill_helper.cc File chrome/renderer/autofill_helper.cc (right): http://codereview.chromium.org/6151011/diff/10002/chrome/renderer/autofill_helper.cc#newcode144 chrome/renderer/autofill_helper.cc:144: } Normally, we use "autocomplete" within this file to ...
9 years, 11 months ago (2011-01-13 02:18:30 UTC) #2
jam
http://codereview.chromium.org/6151011/diff/10002/chrome/renderer/autofill_helper.cc File chrome/renderer/autofill_helper.cc (right): http://codereview.chromium.org/6151011/diff/10002/chrome/renderer/autofill_helper.cc#newcode144 chrome/renderer/autofill_helper.cc:144: } On 2011/01/13 02:18:30, Ilya Sherman wrote: > Normally, ...
9 years, 11 months ago (2011-01-13 02:53:43 UTC) #3
Ilya Sherman
http://codereview.chromium.org/6151011/diff/10002/chrome/renderer/autofill_helper.cc File chrome/renderer/autofill_helper.cc (right): http://codereview.chromium.org/6151011/diff/10002/chrome/renderer/autofill_helper.cc#newcode144 chrome/renderer/autofill_helper.cc:144: } On 2011/01/13 02:53:43, John Abd-El-Malek wrote: > On ...
9 years, 11 months ago (2011-01-13 18:34:49 UTC) #4
Ilya Sherman
9 years, 11 months ago (2011-01-13 18:34:50 UTC) #5
jam
http://codereview.chromium.org/6151011/diff/10002/chrome/renderer/autofill_helper.cc File chrome/renderer/autofill_helper.cc (right): http://codereview.chromium.org/6151011/diff/10002/chrome/renderer/autofill_helper.cc#newcode144 chrome/renderer/autofill_helper.cc:144: } On 2011/01/13 18:34:50, Ilya Sherman wrote: > On ...
9 years, 11 months ago (2011-01-13 18:40:53 UTC) #6
Ilya Sherman
http://codereview.chromium.org/6151011/diff/10002/chrome/renderer/autofill_helper.cc File chrome/renderer/autofill_helper.cc (right): http://codereview.chromium.org/6151011/diff/10002/chrome/renderer/autofill_helper.cc#newcode144 chrome/renderer/autofill_helper.cc:144: } On 2011/01/13 18:40:53, John Abd-El-Malek wrote: > On ...
9 years, 11 months ago (2011-01-13 22:34:51 UTC) #7
jam
On Thu, Jan 13, 2011 at 2:34 PM, <isherman@chromium.org> wrote: > > > http://codereview.chromium.org/6151011/diff/10002/chrome/renderer/autofill_helper.cc > ...
9 years, 11 months ago (2011-01-13 22:52:24 UTC) #8
Ilya Sherman
> For this comment and the above one, the goal as I understand it is ...
9 years, 11 months ago (2011-01-13 23:20:16 UTC) #9
jam
On Thu, Jan 13, 2011 at 3:20 PM, <isherman@chromium.org> wrote: > For this comment and ...
9 years, 11 months ago (2011-01-13 23:32:54 UTC) #10
brettw
http://codereview.chromium.org/6151011/diff/84001/chrome/renderer/render_view.cc File chrome/renderer/render_view.cc (right): http://codereview.chromium.org/6151011/diff/84001/chrome/renderer/render_view.cc#newcode1005 chrome/renderer/render_view.cc:1005: for (size_t i = 0; i < observers_.size(); ++i) ...
9 years, 11 months ago (2011-01-14 02:20:05 UTC) #11
dhollowa
http://codereview.chromium.org/6151011/diff/84001/chrome/renderer/page_click_tracker_unittest.cc File chrome/renderer/page_click_tracker_unittest.cc (right): http://codereview.chromium.org/6151011/diff/84001/chrome/renderer/page_click_tracker_unittest.cc#newcode54 chrome/renderer/page_click_tracker_unittest.cc:54: PageClickTracker* page_click_tracker = new PageClickTracker(view_); Leak? I'm not seeing ...
9 years, 11 months ago (2011-01-14 16:40:47 UTC) #12
jam
did Brett's suggestions http://codereview.chromium.org/6151011/diff/84001/chrome/renderer/page_click_tracker_unittest.cc File chrome/renderer/page_click_tracker_unittest.cc (right): http://codereview.chromium.org/6151011/diff/84001/chrome/renderer/page_click_tracker_unittest.cc#newcode54 chrome/renderer/page_click_tracker_unittest.cc:54: PageClickTracker* page_click_tracker = new PageClickTracker(view_); On ...
9 years, 11 months ago (2011-01-14 23:00:03 UTC) #13
brettw
LGTM
9 years, 11 months ago (2011-01-14 23:06:19 UTC) #14
dhollowa
http://codereview.chromium.org/6151011/diff/84001/chrome/renderer/page_click_tracker_unittest.cc File chrome/renderer/page_click_tracker_unittest.cc (right): http://codereview.chromium.org/6151011/diff/84001/chrome/renderer/page_click_tracker_unittest.cc#newcode54 chrome/renderer/page_click_tracker_unittest.cc:54: PageClickTracker* page_click_tracker = new PageClickTracker(view_); Really? But there is ...
9 years, 11 months ago (2011-01-14 23:21:22 UTC) #15
jam
http://codereview.chromium.org/6151011/diff/84001/chrome/renderer/page_click_tracker_unittest.cc File chrome/renderer/page_click_tracker_unittest.cc (right): http://codereview.chromium.org/6151011/diff/84001/chrome/renderer/page_click_tracker_unittest.cc#newcode54 chrome/renderer/page_click_tracker_unittest.cc:54: PageClickTracker* page_click_tracker = new PageClickTracker(view_); check out render_view_observer.h. The ...
9 years, 11 months ago (2011-01-15 00:06:50 UTC) #16
dhollowa
9 years, 11 months ago (2011-01-15 18:24:23 UTC) #17
LGTM.  Sorry for the delay.

Powered by Google App Engine
This is Rietveld 408576698