"Swapped out" layering violation from content/common to content/shell |
||||||
Issue descriptionThese patches: https://codereview.chromium.org/1715573002 https://codereview.chromium.org/1067373005 Introduced includes from content/common to content/shell for swapped_out_messages.cc I am trying to make GN's header checker pass on content so we don't introduce layering violations, and that's blocked on this laying violation. content/shell is a test harness browser while content/common is linked into every process in the browser. Including content_shell_messages here also brings in other parts of content shell like shell_test_configuration.h and leak_detection_result.h into content/common. We need to find a way to do this that's not a layering violation. Perhaps content_shell needs it's own superclass of the swapped out messages filter.
,
Mar 22 2016
,
Mar 22 2016
Option #3) revert the CL and skip the tests that stop passing. I think we should do 1.1)
,
Mar 22 2016
nasko@ pointed out that there already is ContentClient::CanSendWhileSwappedOut - let me try to use this one.
,
Mar 22 2016
Just to clarify the removing of swapped out filtering. It is already gone from RenderFrame(Host). However, we cannot remove it from RenderView(Host) quite yet, as we need to ensure all IPCs are either Widget or Page, so we can reason about which can be received when. So for a little while longer, filtering will stay on RV(H).
,
Mar 22 2016
I just saw this bug. i had done a fix already earlier today in https://codereview.chromium.org/1821243002/
,
Mar 22 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/6334088eca79889051fd0abb44033d80d5d24c7d commit 6334088eca79889051fd0abb44033d80d5d24c7d Author: brettw <brettw@chromium.org> Date: Tue Mar 22 17:09:49 2016 Make most of content/common pass gn check This fixes all but one bug in content/common. That bug is filed separately as: BUG= 596736 Review URL: https://codereview.chromium.org/1817323002 Cr-Commit-Position: refs/heads/master@{#382591} [modify] https://crrev.com/6334088eca79889051fd0abb44033d80d5d24c7d/content/common/BUILD.gn [modify] https://crrev.com/6334088eca79889051fd0abb44033d80d5d24c7d/content/content_common.gypi [modify] https://crrev.com/6334088eca79889051fd0abb44033d80d5d24c7d/sandbox/linux/BUILD.gn
,
Mar 22 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/80f7f60ce8e7c651c0d3d5957fbbb4ffe9972309 commit 80f7f60ce8e7c651c0d3d5957fbbb4ffe9972309 Author: lukasza <lukasza@chromium.org> Date: Tue Mar 22 23:13:19 2016 More strict restrictions for content -> content/shell dependencies. This CL removes content -> content/shell layering violation around swapped-out filtering, by moving the filtering code into LayoutTestContentClient in the appropriate layer. This CL also tweaks content/DEPS to restricts allowed dependencies, by expanding a comment into an actual DEPS rule that only allows content/shell dependency for browser tests. Additionally, a DEPS exception in content/common/DEPS is not needed anymore (per https://codereview.chromium.org/1777503003/diff/20001/content/common/DEPS#newcode70). BUG= 357747 , 596736 Review URL: https://codereview.chromium.org/1777503003 Cr-Commit-Position: refs/heads/master@{#382725} [modify] https://crrev.com/80f7f60ce8e7c651c0d3d5957fbbb4ffe9972309/content/DEPS [modify] https://crrev.com/80f7f60ce8e7c651c0d3d5957fbbb4ffe9972309/content/common/DEPS [modify] https://crrev.com/80f7f60ce8e7c651c0d3d5957fbbb4ffe9972309/content/common/swapped_out_messages.cc [modify] https://crrev.com/80f7f60ce8e7c651c0d3d5957fbbb4ffe9972309/content/content_shell.gypi [modify] https://crrev.com/80f7f60ce8e7c651c0d3d5957fbbb4ffe9972309/content/shell/BUILD.gn [modify] https://crrev.com/80f7f60ce8e7c651c0d3d5957fbbb4ffe9972309/content/shell/app/shell_main_delegate.cc [modify] https://crrev.com/80f7f60ce8e7c651c0d3d5957fbbb4ffe9972309/content/shell/app/shell_main_delegate.h [add] https://crrev.com/80f7f60ce8e7c651c0d3d5957fbbb4ffe9972309/content/shell/common/layout_test/layout_test_content_client.cc [add] https://crrev.com/80f7f60ce8e7c651c0d3d5957fbbb4ffe9972309/content/shell/common/layout_test/layout_test_content_client.h
,
Mar 29 2016
,
May 18 2016
|
||||||
►
Sign in to add a comment |
||||||
Comment 1 by lukasza@chromium.org
, Mar 22 2016