RESOLVED FIXED 154040
CSP: Extract helper classes into their own files
https://bugs.webkit.org/show_bug.cgi?id=154040
Summary CSP: Extract helper classes into their own files
Daniel Bates
Reported 2016-02-09 11:11:31 PST
Currently ContentSecurityPolicy.cpp contains class definitions for various helper classes. We should extract these helper classes into their own files to better organize and compartmentalize the Content Security Policy code.
Attachments
Patch (161.42 KB, patch)
2016-02-09 11:52 PST, Daniel Bates
bfulgham: review+
bfulgham: commit-queue-
Radar WebKit Bug Importer
Comment 1 2016-02-09 11:11:50 PST
Daniel Bates
Comment 2 2016-02-09 11:52:03 PST
Brent Fulgham
Comment 3 2016-02-09 16:22:13 PST
Comment on attachment 270941 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=270941&action=review r=me. Please clean up the ChangeLog a bit so it's not so large -- most of that auto-generated information is not useful. > Source/WebCore/ChangeLog:16 > + (WebCore::ContentSecurityPolicy::didReceiveHeader): Ditto. You should shrink this ChangeLog by just indicating: WebCore::ContentSecurityPolicy implementation moved to page/csp/ContentSecurityPolicy.{h, cpp}: WebCore::CSPSource implementation moved to page/csp/ContentSecurityPolicySource.{h, cpp} ... etc ... > Source/WebCore/ChangeLog:35 > + (WebCore::isSourceListNone): Deleted. .... and mention which files these bare functions moved to.
Daniel Bates
Comment 4 2016-02-09 17:20:33 PST
(In reply to comment #3) > [...] > > Source/WebCore/ChangeLog:16 > > + (WebCore::ContentSecurityPolicy::didReceiveHeader): Ditto. > > You should shrink this ChangeLog by just indicating: > > WebCore::ContentSecurityPolicy implementation moved to > page/csp/ContentSecurityPolicy.{h, cpp}: > WebCore::CSPSource implementation moved to > page/csp/ContentSecurityPolicySource.{h, cpp} > ... etc ... > Will fix before landing. > > Source/WebCore/ChangeLog:35 > > + (WebCore::isSourceListNone): Deleted. > > .... and mention which files these bare functions moved to. Will fix before landing.
Daniel Bates
Comment 5 2016-02-09 17:21:21 PST
Note You need to log in before you can comment on or make changes to this bug.