Bug 209984

Summary: [iOS] Simplify ProcessAssertion class in preparation for switch to RunningBoard
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebKit2Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, beidson, darin, ggaren, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=210049
Bug Depends on:    
Bug Blocks: 209990    
Attachments:
Description Flags
Patch none

Description Chris Dumez 2020-04-03 13:54:38 PDT
Simplify ProcessAssertion class in preparation for switch to RunningBoard. There is a slight mismatch between the way BKS and RunningBoard process assertion API. This refactoring makes it so that we can use the same ProcessAssertion class in WebKit to work with either BKS or RunningBoard. Support for RunningBoard will come later.
Comment 1 Radar WebKit Bug Importer 2020-04-03 13:54:52 PDT
<rdar://problem/61273941>
Comment 2 Chris Dumez 2020-04-03 14:07:41 PDT
Created attachment 395409 [details]
Patch
Comment 3 Darin Adler 2020-04-04 16:40:15 PDT
Comment on attachment 395409 [details]
Patch

If reasons are always C++ literals, why store them in WTF::String? We could just store as const char* or maybe even as WTF::ASCIILiteral.
Comment 4 EWS 2020-04-04 17:03:52 PDT
Committed r259540: <https://trac.webkit.org/changeset/259540>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 395409 [details].
Comment 5 Chris Dumez 2020-04-06 08:27:52 PDT
(In reply to Darin Adler from comment #3)
> Comment on attachment 395409 [details]
> Patch
> 
> If reasons are always C++ literals, why store them in WTF::String? We could
> just store as const char* or maybe even as WTF::ASCIILiteral.

Ok, will follow-up in https://bugs.webkit.org/show_bug.cgi?id=210049.