Bug 211090

Summary: Make HistoryController an inner class of FrameLoader
Product: WebKit Reporter: Rob Buis <rbuis>
Component: New BugsAssignee: Rob Buis <rbuis>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, darin, ews-watchlist, japhet, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Description Rob Buis 2020-04-27 13:11:19 PDT
Make HistoryController an inner class of FrameLoader, this allows us to move some methods
only used by HistoryController out of the FrameLoader public API.
Comment 1 Rob Buis 2020-04-27 13:15:26 PDT
Created attachment 397725 [details]
Patch
Comment 2 Rob Buis 2020-04-27 14:24:31 PDT
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 3 Darin Adler 2020-04-27 14:30:38 PDT
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.
Comment 4 Rob Buis 2020-04-28 01:19:12 PDT
Created attachment 397819 [details]
Patch
Comment 5 EWS 2020-04-28 02:11:50 PDT
Committed r260812: <https://trac.webkit.org/changeset/260812>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 397819 [details].
Comment 6 Radar WebKit Bug Importer 2020-04-28 02:12:18 PDT
<rdar://problem/62499688>