Make HistoryController an inner class of FrameLoader, this allows us to move some methods only used by HistoryController out of the FrameLoader public API.
Created attachment 397725 [details] Patch
Comment on attachment 397725 [details] Patch PTAL. If this kind of design is acceptable I'd like to do the same for PolicyChecker and DocumentLoader, as especially the latter adds a lot of public API to FrameLoader that is only used by DocumentLoader, which could be made private. These classes all look tightly coupled to me BTW.
Comment on attachment 397725 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=397725&action=review > Source/WebCore/loader/HistoryController.h:32 > -#include "FrameLoaderTypes.h" > +#include "FrameLoader.h" Iād think you could remove many of the includes below after making this change.
Created attachment 397819 [details] Patch
Committed r260812: <https://trac.webkit.org/changeset/260812> All reviewed patches have been landed. Closing bug and clearing flags on attachment 397819 [details].
<rdar://problem/62499688>