| Summary: | Make PolicyChecker an inner class of FrameLoader | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Rob Buis <rbuis> | ||||||||||
| Component: | New Bugs | Assignee: | Rob Buis <rbuis> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | achristensen, calvaris, cdumez, cgarcia, eric.carlson, ews-watchlist, glenn, gustavo, japhet, jer.noble, menard, philipj, pnormand, sergio, vjaquez, webkit-bug-importer | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | Safari Technology Preview | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Rob Buis
2020-04-28 11:59:51 PDT
Created attachment 397865 [details]
Patch
Created attachment 397882 [details]
Patch
Created attachment 397883 [details]
Patch
Comment on attachment 397883 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=397883&action=review > Source/WebCore/loader/FrameLoader.h:112 > PolicyChecker& policyChecker() const { return *m_policyChecker; } You could make m_policyChecker a UniqueRef > Source/WebCore/loader/FrameLoaderTypes.h:115 > +enum class ShouldContinuePolicyCheck : uint8_t { bool > Source/WebCore/loader/PolicyChecker.h:114 > +template<> struct EnumTraits<WebCore::ShouldContinuePolicyCheck> { This is not needed if ShouldContinuePolicyCheck has a bool underlying type. Created attachment 397940 [details]
Patch
Committed r260890: <https://trac.webkit.org/changeset/260890> All reviewed patches have been landed. Closing bug and clearing flags on attachment 397940 [details]. Comment on attachment 397883 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=397883&action=review >> Source/WebCore/loader/FrameLoader.h:112 >> PolicyChecker& policyChecker() const { return *m_policyChecker; } > > You could make m_policyChecker a UniqueRef Is there a clear benefit? I left it out for landing since there are a few similar cases in FrameLoader, I think it is better if needed to fix them all in one patch if there are benefits. >> Source/WebCore/loader/FrameLoaderTypes.h:115 >> +enum class ShouldContinuePolicyCheck : uint8_t { > > bool Done. >> Source/WebCore/loader/PolicyChecker.h:114 >> +template<> struct EnumTraits<WebCore::ShouldContinuePolicyCheck> { > > This is not needed if ShouldContinuePolicyCheck has a bool underlying type. Nice! I removed it. |