RESOLVED FIXED66984
Enum-ify ResourceLoaderOptions/ThreadableLoaderOptions
https://bugs.webkit.org/show_bug.cgi?id=66984
Summary Enum-ify ResourceLoaderOptions/ThreadableLoaderOptions
Nate Chapin
Reported 2011-08-25 14:46:00 PDT
Follow-up to https://bugs.webkit.org/show_bug.cgi?id=63301. We have long lists of booleans that get passed all around and are easy to get wrong. They'd be more readable as enums. I'm targeting sendLoadCallbacks, sniffContent, and shoulBufferData in ResourceLoaderOptions, and allowCredentials in ThreadableLoaderOptions.
Attachments
patch (33.75 KB, patch)
2011-08-25 14:51 PDT, Nate Chapin
webkit-ews: commit-queue-
Update Notification.cpp too (34.45 KB, patch)
2011-08-25 15:26 PDT, Nate Chapin
no flags
Patch for landing (36.82 KB, patch)
2011-08-26 09:32 PDT, Nate Chapin
no flags
Nate Chapin
Comment 1 2011-08-25 14:51:50 PDT
Early Warning System Bot
Comment 2 2011-08-25 15:23:27 PDT
Nate Chapin
Comment 3 2011-08-25 15:26:53 PDT
Created attachment 105260 [details] Update Notification.cpp too
David Levin
Comment 4 2011-08-25 16:59:06 PDT
Comment on attachment 105260 [details] Update Notification.cpp too View in context: https://bugs.webkit.org/attachment.cgi?id=105260&action=review > Source/WebCore/loader/cache/CachedResourceRequest.cpp:128 > + ResourceLoaderOptions(sendResourceLoadCallbacks ? SendCallbacks : DoNotSendCallbacks, SniffContent, BufferData)); You may want to consider making this function take the enum instead of a bool.
WebKit Review Bot
Comment 5 2011-08-25 17:45:12 PDT
Comment on attachment 105260 [details] Update Notification.cpp too Attachment 105260 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/9507684
Eric Seidel (no email)
Comment 6 2011-08-25 21:18:12 PDT
Comment on attachment 105260 [details] Update Notification.cpp too Attachment 105260 [details] did not pass cr-mac-ews (chromium): Output: http://queues.webkit.org/results/9495842
Nate Chapin
Comment 7 2011-08-26 09:15:11 PDT
(In reply to comment #4) > (From update of attachment 105260 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=105260&action=review > > > Source/WebCore/loader/cache/CachedResourceRequest.cpp:128 > > + ResourceLoaderOptions(sendResourceLoadCallbacks ? SendCallbacks : DoNotSendCallbacks, SniffContent, BufferData)); > > You may want to consider making this function take the enum instead of a bool. I'm going to do that as a part of my next attempt at https://bugs.webkit.org/show_bug.cgi?id=66018.
Nate Chapin
Comment 8 2011-08-26 09:32:57 PDT
Created attachment 105363 [details] Patch for landing
WebKit Review Bot
Comment 9 2011-08-26 10:41:41 PDT
Comment on attachment 105363 [details] Patch for landing Clearing flags on attachment: 105363 Committed r93886: <http://trac.webkit.org/changeset/93886>
WebKit Review Bot
Comment 10 2011-08-26 10:41:46 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.