RESOLVED FIXED 139987
Move Pasteboard code out of WebProcessPool and into its own singleton class
https://bugs.webkit.org/show_bug.cgi?id=139987
Summary Move Pasteboard code out of WebProcessPool and into its own singleton class
Sam Weinig
Reported 2014-12-29 09:34:12 PST
Move Pasteboard code out of WebProcessPool and into its own singleton class
Attachments
Patch (59.18 KB, patch)
2014-12-29 09:37 PST, Sam Weinig
no flags
Patch (56.91 KB, patch)
2014-12-29 10:19 PST, Sam Weinig
andersca: review+
Sam Weinig
Comment 1 2014-12-29 09:37:00 PST
Anders Carlsson
Comment 2 2014-12-29 09:47:38 PST
Comment on attachment 243797 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=243797&action=review > Source/WebKit2/Shared/WebPasteboardProxy.cpp:40 > + static WebPasteboardProxy* proxy; > + static dispatch_once_t once; > + dispatch_once(&once, ^{ > + proxy = new WebPasteboardProxy; > + }); You can use LazyNeverDestroyed here. > Source/WebKit2/Shared/WebPasteboardProxy.messages.in:57 > +#if !PLATFORM(COCOA) > + // FIXME: This a dummy message, to avoid breaking the build for platforms that don't require > + // any synchronous messages, and should be removed when <rdar://problem/8775115> is fixed. > + Dummy() -> (bool dummyReturn) > +#endif I don't think this is needed. > Source/WebKit2/UIProcess/WebProcessPool.cpp:-1169 > - if (decoder.messageReceiverName() == Messages::WebProcessPool::messageReceiverName()) { > - didReceiveSyncWebProcessPoolMessage(connection, decoder, replyEncoder); > - return; > - } I think we stil need this for now since I moved the message handling code to WebProcessPool.
Sam Weinig
Comment 3 2014-12-29 10:19:57 PST
Sam Weinig
Comment 4 2014-12-29 10:23:45 PST
Note You need to log in before you can comment on or make changes to this bug.