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

Issue 1964273002: Add FrameHost mojo service (Closed)

Created:
4 years, 7 months ago by scottmg
Modified:
4 years, 7 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, creis+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, jam, nasko+codewatch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add FrameHost mojo service Adds new frame-level service with one initial method to handle host zoom level. This moves zoom level supply from async_resource_handler.cc to being a request made when render_frame_impl handles a willSendRequest. The goal of this change is to remove the dependency of content/browser/loader on the rest of content/browser in particular here, removing the use of c/b/host_zoom_map_impl.h in content/browser/loader/async_resource_handler.cc. BUG=598073, 609607 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/68c6f2ce16d9807b5cb82679099c82c40f39e911 Cr-Commit-Position: refs/heads/master@{#394547}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : test #

Patch Set 7 : gyp #

Patch Set 8 : test2 #

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : tidy #

Patch Set 12 : android #

Patch Set 13 : android-2 #

Total comments: 10

Patch Set 14 : . #

Patch Set 15 : rebase #

Patch Set 16 : tests #

Patch Set 17 : . #

Patch Set 18 : FrameService #

Patch Set 19 : missing files #

Total comments: 6

Patch Set 20 : FrameHost #

Patch Set 21 : disable on android #

Patch Set 22 : unbind #

Total comments: 4

Patch Set 23 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -107 lines) Patch
M build/android/pylib/gtest/filter/content_browsertests_disabled View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 6 chunks +16 lines, -3 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 6 chunks +29 lines, -0 lines 0 comments Download
M content/browser/host_zoom_map_impl.h View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/loader/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/loader/async_resource_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +0 lines, -16 lines 0 comments Download
M content/browser/loader/async_revalidation_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/loader/resource_dispatcher_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/loader/resource_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +0 lines, -6 lines 0 comments Download
M content/browser/loader/resource_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +0 lines, -9 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +1 line, -3 lines 0 comments Download
M content/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +2 lines, -0 lines 0 comments Download
A + content/common/frame_host.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +5 lines, -4 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -7 lines 0 comments Download
M content/content_common_mojo_bindings.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 4 chunks +7 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 5 chunks +26 lines, -4 lines 0 comments Download
M content/renderer/render_frame_impl_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +27 lines, -0 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +0 lines, -26 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +0 lines, -6 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +0 lines, -17 lines 0 comments Download

Messages

Total messages: 41 (19 generated)
scottmg
jam: for overall review nasko: for _messages wjmaclean: I removed one of your TODO to ...
4 years, 7 months ago (2016-05-16 17:51:49 UTC) #9
jam
https://codereview.chromium.org/1964273002/diff/260001/content/browser/host_zoom_level_impl.h File content/browser/host_zoom_level_impl.h (right): https://codereview.chromium.org/1964273002/diff/260001/content/browser/host_zoom_level_impl.h#newcode19 content/browser/host_zoom_level_impl.h:19: int render_process_id, these two parameters are redundant, since one ...
4 years, 7 months ago (2016-05-16 18:28:32 UTC) #10
wjmaclean
https://codereview.chromium.org/1964273002/diff/260001/content/browser/loader/async_resource_handler.cc File content/browser/loader/async_resource_handler.cc (left): https://codereview.chromium.org/1964273002/diff/260001/content/browser/loader/async_resource_handler.cc#oldcode347 content/browser/loader/async_resource_handler.cc:347: const HostZoomMapImpl* host_zoom_map = If I remember correctly, this ...
4 years, 7 months ago (2016-05-16 18:53:07 UTC) #11
wjmaclean
https://codereview.chromium.org/1964273002/diff/260001/content/common/host_zoom_level.mojom File content/common/host_zoom_level.mojom (right): https://codereview.chromium.org/1964273002/diff/260001/content/common/host_zoom_level.mojom#newcode10 content/common/host_zoom_level.mojom:10: GetZoomLevel(url.mojom.Url url, int32 render_view_id) On 2016/05/16 18:28:32, jam wrote: ...
4 years, 7 months ago (2016-05-16 18:59:53 UTC) #12
Ben Goodger (Google)
On 2016/05/16 17:51:49, scottmg wrote: > jam: for overall review > nasko: for _messages > ...
4 years, 7 months ago (2016-05-16 19:14:41 UTC) #13
scottmg
Thanks all, routing id gone now. On 2016/05/16 19:14:41, Ben Goodger (Google) wrote: > On ...
4 years, 7 months ago (2016-05-16 22:54:44 UTC) #16
scottmg
https://codereview.chromium.org/1964273002/diff/260001/content/browser/host_zoom_level_impl.h File content/browser/host_zoom_level_impl.h (right): https://codereview.chromium.org/1964273002/diff/260001/content/browser/host_zoom_level_impl.h#newcode19 content/browser/host_zoom_level_impl.h:19: int render_process_id, On 2016/05/16 18:28:32, jam wrote: > these ...
4 years, 7 months ago (2016-05-16 22:54:56 UTC) #17
scottmg
OK, renamed from HostZoomLevel.mojom to FrameService.mojom, and the method from GetZoomLevel() to GetHostZoomLevel(). Let me ...
4 years, 7 months ago (2016-05-17 00:16:26 UTC) #20
wjmaclean
On 2016/05/17 00:16:26, scottmg wrote: > OK, renamed from HostZoomLevel.mojom to FrameService.mojom, and the method ...
4 years, 7 months ago (2016-05-17 14:27:17 UTC) #21
Ben Goodger (Google)
https://codereview.chromium.org/1964273002/diff/410001/content/browser/frame_service_impl.h File content/browser/frame_service_impl.h (right): https://codereview.chromium.org/1964273002/diff/410001/content/browser/frame_service_impl.h#newcode16 content/browser/frame_service_impl.h:16: class FrameServiceImpl : public mojom::FrameService { can you have ...
4 years, 7 months ago (2016-05-17 14:44:52 UTC) #23
jam
https://codereview.chromium.org/1964273002/diff/410001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (left): https://codereview.chromium.org/1964273002/diff/410001/content/renderer/render_view_impl.cc#oldcode2385 content/renderer/render_view_impl.cc:2385: #if !defined(OS_ANDROID) hmm maybe best to keep android behavior ...
4 years, 7 months ago (2016-05-17 17:20:30 UTC) #25
scottmg
Thanks https://codereview.chromium.org/1964273002/diff/410001/content/browser/frame_service_impl.h File content/browser/frame_service_impl.h (right): https://codereview.chromium.org/1964273002/diff/410001/content/browser/frame_service_impl.h#newcode16 content/browser/frame_service_impl.h:16: class FrameServiceImpl : public mojom::FrameService { On 2016/05/17 ...
4 years, 7 months ago (2016-05-17 17:36:16 UTC) #26
Ben Goodger (Google)
On 2016/05/17 17:36:16, scottmg wrote: > Thanks > > https://codereview.chromium.org/1964273002/diff/410001/content/browser/frame_service_impl.h > File content/browser/frame_service_impl.h (right): > ...
4 years, 7 months ago (2016-05-17 19:38:03 UTC) #27
jam
lgtm
4 years, 7 months ago (2016-05-17 19:43:22 UTC) #28
scottmg
->dcheng for content/common/view_messages.h as nasko is out.
4 years, 7 months ago (2016-05-17 20:16:30 UTC) #30
dcheng
https://codereview.chromium.org/1964273002/diff/470001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1964273002/diff/470001/content/browser/frame_host/render_frame_host_impl.cc#newcode2577 content/browser/frame_host/render_frame_host_impl.cc:2577: callback.Run(std::move(url), zoom_level); std::move() here is a no-op, since |url| ...
4 years, 7 months ago (2016-05-18 04:46:18 UTC) #31
scottmg
https://codereview.chromium.org/1964273002/diff/470001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1964273002/diff/470001/content/browser/frame_host/render_frame_host_impl.cc#newcode2577 content/browser/frame_host/render_frame_host_impl.cc:2577: callback.Run(std::move(url), zoom_level); On 2016/05/18 04:46:17, dcheng wrote: > std::move() ...
4 years, 7 months ago (2016-05-18 18:31:44 UTC) #32
dcheng
lgtm
4 years, 7 months ago (2016-05-18 19:46:46 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1964273002/490001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1964273002/490001
4 years, 7 months ago (2016-05-18 19:52:22 UTC) #36
commit-bot: I haz the power
Committed patchset #23 (id:490001)
4 years, 7 months ago (2016-05-18 21:10:51 UTC) #38
commit-bot: I haz the power
Patchset 23 (id:??) landed as https://crrev.com/68c6f2ce16d9807b5cb82679099c82c40f39e911 Cr-Commit-Position: refs/heads/master@{#394547}
4 years, 7 months ago (2016-05-18 21:11:50 UTC) #40
scottmg
4 years, 7 months ago (2016-05-24 22:47:24 UTC) #41
Message was sent while issue was closed.
A revert of this CL (patchset #23 id:490001) has been created in
https://codereview.chromium.org/2007203002/ by scottmg@chromium.org.

The reason for reverting is: Async request for zoom level doesn't work in all
cases https://crbug.com/614348 https://crbug.com/613979.

I thought
https://www.chromium.org/developers/design-documents/mojo/chrome-ipc-to-mojo-...
implied the ordering would be correct, but it seems that was too hopeful..

Powered by Google App Engine
This is Rietveld 408576698