| Summary: | Use a single map for all callback types in WebPageProxy | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | mitz | ||||||
| Component: | WebKit2 | Assignee: | mitz | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | sam, thorton | ||||||
| Priority: | P2 | ||||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
mitz
2014-06-19 12:23:07 PDT
Created attachment 233373 [details]
Part 1
Comment on attachment 233373 [details] Part 1 View in context: https://bugs.webkit.org/attachment.cgi?id=233373&action=review > Source/WebKit2/UIProcess/GenericCallback.h:177 > + typename std::enable_if<std::is_base_of<CallbackBase, T>::value, RefPtr<T>>::type take(uint64_t callbackID) Oops, the enable_if isn’t necessary anymore. I’ll get rid of it. Comment on attachment 233373 [details] Part 1 View in context: https://bugs.webkit.org/attachment.cgi?id=233373&action=review > Source/WebKit2/UIProcess/GenericCallback.h:170 > + void put(PassRefPtr<CallbackBase> callback) I think set or add would be better than put but I don't feel strongly about it. (In reply to comment #3) > (From update of attachment 233373 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=233373&action=review > > > Source/WebKit2/UIProcess/GenericCallback.h:170 > > + void put(PassRefPtr<CallbackBase> callback) > > I think set or add would be better than put but I don't feel strongly about it. I wanted to use something different from the HashMap function names add and set, because the argument is consumed. Committed part 1 as <http://trac.webkit.org/r170158>. Created attachment 233384 [details]
Part 2
Committed part 2 as <http://trac.webkit.org/r170168>. |